forked from mehah/otclient
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Framework Cleanup (no more client code in fw) (mehah#666)
* Moved <client/...> includes from framework (we should never cross contaminate fw/client) GraphicalApplication was the biggest offender, we need to ensure that this is a base graphical application class and not a client specific class. Created UIQrCode widget Minor additions and clean up * Fix for latest version * Finished, no more client code in the framework! * Update README * Revert * fix cmake build * Update review suggestions Remove `image-source-base64` in favour of `image-source: base64:/path/image` * Added CHANGELOG.md to help with noting breaking changes * More framework improvements and some client improvements: - Readd FRAMEWORK_GRAPHICS (so we can have no graphics support) - Added creatureDiagonalWalkSpeed/playerDiagonalWalkSpeed upgrade_classification - Added getCountOrSubType to Item lua binding - Added startEvent to EventDispatcher (to start stored ScheduledEvent's) - Removed g_drawPool from the application.cpp (we use dispatchPoll) - Added startTime calculator when logging module starts - Allow commenting out otml using # - Added some math functions - Added onAdopted/onAbandoned to UIWidget for when they are added to/from parent UIWidget's - Added some more helper methods to UIWidget - Added visibleOnly to UIWidget getChildBefore/getChildAfter methods - Added onHovered for only hovered widget events - Make getChildIndex take child as optional parameter, if not provided it returns this widgets child index - Added sha1Encrpyt method - General clean up * Rename ApplicationDrawEvents#setLoadingAsyncTexture to onLoadingAsyncTextureChanged * Update setup.otml * Added a todo * Clean up * Revert old code (oops) * Reverting onAdopted, etc * Add improved version * Improve getHoveredChild * Recommended fixes/clean up * Moved missed graphical sources to FRAMEWORK_GRAPHICS
- Loading branch information
Showing
73 changed files
with
1,093 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Changelog | ||
|
||
## 05-12-2023 | ||
### Breaking API Changes | ||
- `UIWidget` property `qr-code` & `qr-code-border` replaced with `UIQrCode` properties `code` & `code-border` | ||
- `image-source-base64` replaced with `image-source: base64:/path/to/image` | ||
- `#include "shadermanager.h"` moved to `#include <framework/graphics/shadermanager.h>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.