Skip to content
Commits on May 15, 2016
  1. @lynxlynxlynx

    Merge pull request #50 from MarcelHB/window_keys

    GUIScript: allows callbacks for window-scoped key presses
    lynxlynxlynx committed May 15, 2016
Commits on May 12, 2016
  1. @lynxlynxlynx
  2. @lynxlynxlynx

    iwd: removed some useless commented out code

    remnants of the transition to immediate saving of stats
    lynxlynxlynx committed with lynxlynxlynx May 11, 2016
  3. @lynxlynxlynx
  4. @lynxlynxlynx

    iwd2: removed unused guiworld var

    a leftover from initial gui work - all other games use it
    lynxlynxlynx committed with lynxlynxlynx May 11, 2016
  5. @lynxlynxlynx
  6. @lynxlynxlynx
  7. @lynxlynxlynx
Commits on May 7, 2016
  1. @bradallred

    Merge pull request #52 from MarcelHB/iwd2_avatar_sizes

    IWD2: updates some avatar size values
    bradallred committed May 7, 2016
  2. @MarcelHB

    IWD2: updates some avatar size values

    Value range taken from BG2. Otherwise, lots of (N)PCs lack equipment
    animations.
    MarcelHB committed May 7, 2016
Commits on May 6, 2016
  1. @bradallred

    Merge pull request #51 from kujeger/sdl2-mouse

    SDL2: Fix RMB stuck cursor
    bradallred committed May 6, 2016
  2. @kujeger
  3. @kujeger

    SDL2: Fix RMB stuck cursor

    If not using touch input,
    SDL_MOUSEMOTION/SDL_MOUSEBUTTONDOWN/SDL_MOUSEBUTTONUP would never break,
    instead moving on to SDL_KEYDOWN -- which would read
    event.key.keysym.scancode and erronously break on the scancode event
    read when RMB+MouseMovement occurred, never moving on to return the
    event to SDLVideoDriver::ProcessEvent . We now explicitly return the
    event when event.button.which is not SDL_TOUCH_MOUSEID .
    kujeger committed May 6, 2016
Commits on May 5, 2016
  1. @MarcelHB

    PythonHelpers: fixes compatibility with GCC

    Otherwise, it yields an error for missing declarations.
    MarcelHB committed May 5, 2016
  2. @MarcelHB

    GUIScript: adds `_GemRB.Window_SetKeyPressEvent' method

    For Py scripts to set their own window-scoped callbacks.
    MarcelHB committed May 5, 2016
  3. @MarcelHB
  4. @MarcelHB

    GUI::EventMgr: polls current window for pressed key use

    But only if the control is not doing anything.
    MarcelHB committed May 5, 2016
  5. @MarcelHB

    GUI::Window: adds support for key stroke handling

    If we intend to support certain key strokes in an abstract window-scope,
    we need support for callbacks.
    MarcelHB committed May 5, 2016
Commits on May 3, 2016
  1. @MarcelHB @lynxlynxlynx

    IWD2: enables dark main menu bg when playing at night

    In the original game, playing between 6:00pm and 6:59am yields a
    different background with a flare animation. Cozy.
    MarcelHB committed with lynxlynxlynx May 3, 2016
  2. @MarcelHB @lynxlynxlynx
  3. @MarcelHB @lynxlynxlynx

    GUI::ScrollBar: preserves active state on ongoing action

    Scrollbar scrolling no longer accidentally finishes on leaving the
    containment and re-entering while grabbing the handle.
    MarcelHB committed with lynxlynxlynx Apr 30, 2016
  4. @MarcelHB @lynxlynxlynx

    GUI::EventMgr: preserves focus lock after rk interrupt

    If `rk_flags' caused a GEM_MB_ONGOING_ACTION, we keep the focus anyway.
    Otherwise, we couldn't use a scollbar outside of its containment.
    MarcelHB committed with lynxlynxlynx Apr 30, 2016
  5. @MarcelHB @lynxlynxlynx

    SDLVideo/GUI: changes `MouseUp' bitmask on rk to GEM_MB_ONGOING_ACTION

    This way, we can identify `MouseUp' when unintended by modified
    `rk_flags'.
    MarcelHB committed with lynxlynxlynx May 3, 2016
Commits on May 2, 2016
  1. @lynxlynxlynx

    Merge pull request #46 from MarcelHB/mbstring_fix

    String: extends buffer in `MBCStringFromString'
    lynxlynxlynx committed May 2, 2016
  2. @lynxlynxlynx
  3. @lynxlynxlynx

    iwd2: fixed stat resetting in OpenSkillsWindow

    alternative to PR #48
    lynxlynxlynx committed May 2, 2016
Commits on May 1, 2016
  1. @MarcelHB

    String: extends buffer in `MBCStringFromString'

    If `String' aliases to `std::wstring', `::length' returns the number
    of wide-chars, not bytes. For the worst case, we should allow each
    `wchar_t' to be mapped into space not smaller, shrinking the space after
    the result of `wcstombs'.
    
    Otherwise, multibyte charachters make the resulting string cut-off
    early.
    MarcelHB committed May 1, 2016
  2. @lynxlynxlynx
  3. @lynxlynxlynx

    Merge pull request #44 from MarcelHB/iwd2_skill_window

    IWD2::Skills: prevents scrolling beyond skill items
    lynxlynxlynx committed May 1, 2016
Commits on Apr 30, 2016
  1. @MarcelHB

    IWD2::Skills: prevents scrolling beyond skill items

    In addition, this saves a Python exception.
    MarcelHB committed Apr 29, 2016
Commits on Apr 28, 2016
  1. @lynxlynxlynx
  2. @lynxlynxlynx
  3. @lynxlynxlynx
  4. @kujeger @lynxlynxlynx

    Sdl2 input hacking (#42)

    SDL2: fixed several keyboard input problems
    
    * SDL2: also skip scancodes 32 and 1073742053
    
    scancode 32 is space, 1073742053 is shift -- not "skipping" these means that various text input fields put space twice, and also "printed" the shift keypress
    
    * SDL2: "Skip" shift+ctrl. Fix key-combos.
    
    Re-implement the fullscreen and console keycombo in the SDL2 code,
    and "skip" not just one shift button, but both of them plus ctrl.
    
    * Move key ignoring to SDL_KEYDOWN, alter clauses.
    
    SDL_KEYUP events are now passed through to SDLVideoDriver::ProcessEvent,
    since the SDL_TEXTINPUT handler only passes keys to
    EvntManager->KeyPress -- that is, only as if they were pressed. This
    meant that keys snagged by SDL_TEXTINPUT could only ever generate events
    as if KEYDOWN, never KEYUP.
    Keys are not also passed on unfiltered if they are pressed while holding
    ctrl, to allow key-combinations like fullscreen and console
    
    * SDL2: Handle console popping directly. Fix numpad.
    
    Since console is the only time a KEYDOWN shortcut is handled directly in
    SDLVideoDriver::ProcessEvent, it is reproduced in the SDL2 code.
    Also add keypad buttons to "filter" so they work as in SDL1.
    kujeger committed with lynxlynxlynx Apr 29, 2016
  5. @lynxlynxlynx

    Merge pull request #43 from MarcelHB/iwd2_cg_skill_points

    IWD2::CG: adjusts skill points calculation
    lynxlynxlynx committed Apr 28, 2016
Something went wrong with that request. Please try again.