Increased UI display speed. LogFlasher, LogDisplay, HotkeysDisplay,...
Increased UI display speed. LogFlasher, LogDisplay, HotkeysDisplay, ActorsSeenDisplay, Tooltip and PlayerDisplay classes have changed and are now easier (and faster) to use. Converting is easy: * In your Game:display() change lines like self.log:display():toScreen(self.display_x, self.display_y) * to simply: self.log:toScreen() * To convert your own PlayerDisplay have a look at ToME's one, but basically you just need to create a texture with :glTexture() and then update it at the end of yoru display() and add a new toScreen() method git-svn-id: http://svn.net-core.org/repos/t-engine4@1174 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
- game/engines/default/engine/ActorsSeenDisplay.lua 7 additions, 0 deletionsgame/engines/default/engine/ActorsSeenDisplay.lua
- game/engines/default/engine/HotkeysDisplay.lua 7 additions, 0 deletionsgame/engines/default/engine/HotkeysDisplay.lua
- game/engines/default/engine/LogDisplay.lua 8 additions, 0 deletionsgame/engines/default/engine/LogDisplay.lua
- game/engines/default/engine/LogFlasher.lua 21 additions, 11 deletionsgame/engines/default/engine/LogFlasher.lua
- game/engines/default/engine/Tooltip.lua 6 additions, 5 deletionsgame/engines/default/engine/Tooltip.lua
- game/engines/default/engine/utils.lua 8 additions, 8 deletionsgame/engines/default/engine/utils.lua
- game/modules/example/class/Game.lua 4 additions, 4 deletionsgame/modules/example/class/Game.lua
- game/modules/example_realtime/class/Game.lua 4 additions, 4 deletionsgame/modules/example_realtime/class/Game.lua
- game/modules/tome/class/Game.lua 5 additions, 18 deletionsgame/modules/tome/class/Game.lua
- game/modules/tome/class/PlayerDisplay.lua 7 additions, 1 deletiongame/modules/tome/class/PlayerDisplay.lua
- src/core_lua.c 4 additions, 0 deletionssrc/core_lua.c
Please register or sign in to comment