Skip to content
Snippets Groups Projects
  1. Dec 16, 2014
  2. Dec 15, 2014
  3. Dec 14, 2014
    • DarkGod's avatar
      Fixed dialog size & placement for yesnoLongPopup · 4f19099e
      DarkGod authored
      4f19099e
    • DarkGod's avatar
      Merge branch 'uifix' into 'master' · 6d122cf9
      DarkGod authored
      Fix UI left, right, etc. calculations
      
      While working on statusbox, I've discovered that:
      - absolutely everything dependent adds self.ix, self.iy twice. or thrice. this was masking top= bug, for example.
      - right=ui sets right to ui.x, which usually sets an object flying to the opposite side of the dialog,
      - top=ui sets top edge to be equal to the top edge of the ui, which is probably not what's desired (see left=)
      - bottom=ui has similar problem to right,
      - hcenter=ui sends a ui element flying half a dialog width to the right,
      - vcenter=ui, likewise,
      - and hcenter_left=ui I didn't understand what it's supposed to do.
      
      This commit fixes all of the above, sans the last, and also adds 3 pixels of padding between everything to compensate for buggy yet sometimes desired previous results.
      6d122cf9
    • DarkGod's avatar
      Merge branch 'redisplay_fix' into 'master' · 08f7300e
      DarkGod authored
      Redisplay fix
      
      Calling redisplay() multiple times per turn is notorious for causing lag. The worst offender is probably Smoke Bomb, and it just got stripped from Creeping Dark.
      This commit introduces a new scheduleRedisplay method, which uses little-known feature of game:onTickEnd to ensure that a redisplay would only get called once per this tick, not causing any frame drops.
      08f7300e
    • DarkGod's avatar
      fix · 57987f3e
      DarkGod authored
      57987f3e
    • DarkGod's avatar
      Merge branch 'levelup_annoyances' into 'master' · ee2bf948
      DarkGod authored
      LevelupDialog status box
      
      Many users have expressed their frustration that appears when clicking too fast on a talent or stat to level it up pops up a message, forcing them to click "Ok". This commit adds a simple status line on top of the window, always clearly visible, that communicates these short messages in aesthetically pleasing colours. For important messages (e.g. the player somehow created an impossible talent loadout), the modal dialog usage was retained.
      ee2bf948
Loading