summaryrefslogtreecommitdiff
path: root/src/story_gui.cpp
AgeCommit message (Collapse)Author
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-07-27Codechange: Spell 'Viewport' consistentlyTechGeekNZ
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'. This patch makes everything consistent.
2020-05-27Fix: Compilation warnings in story_gui and script_story_pageJonathan G Rennison
See: #7896
2020-05-22Feature: Push-buttons on storybook pages (#7896)Niels Martin Hansen
Allow more direct player-initiated interaction for Game Scripts, by letting the GS put push-buttons on storybook pages. These buttons can either trigger an immediate event, or require the player to first select a tile on the map, or a vehicle. Additionally this reworks how the storybook pages are layouted and rendered, to allow for slightly more complex layouts, and maybe speeding drawing up a bit.
2019-12-21Codechange: Replace story related FOR_ALL with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-04-13Codechange: use std::sort() in GUIListglx
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-04-09Codechange: Switch DropDownList to directly use std::vector, thus making ↵Michael Lutz
AutoDeleteSmallVector obsolete. DropDownListItem are strongly managed using std::unique_ptr to ensure leak-free handling. Appropriate use of move-semantics make intent a lot clearer than parameter comments and allows the compiler to generate copy-free code for most situations.
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Compact() with std::vector::shrink_to_fit()Henry Wilson
2019-03-26Codechange: Replace SmallVector::Clear() with std::vector::clear()Henry Wilson
2019-03-24Codechange: Use override specifier in Window-derived classes.peter1138
2014-12-18(svn r27086) -Codechange: Simplify opening of windows by always returning a ↵alberth
valid window pointer.
2014-10-15(svn r27020) -Cleanup: some coding style consistency improvements (mostly ↵rubidium
spaces)
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-02-06(svn r26307) -Add: [nogo] Allow GS to hide story page datezuu
2013-11-24(svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for ↵rubidium
dropdowns
2013-11-22(svn r26048) -Fix: use delete instead of free when allocated by newrubidium
2013-11-19(svn r26040) -Fix: return 0 from unreached part of function to silence some ↵fonsinchen
compilers
2013-10-28(svn r25920) -Fix: Story page content was clipped incorrectly and was drawn ↵frosch
past the bottom end.
2013-10-13(svn r25864) -Fix: Use the actual sprite dimensions for sizing the dropdown ↵frosch
arrow of dropdown widgets.
2013-09-14(svn r25771) -Fix (r25344): If story book content changed height due a ↵zuu
string parameter changing length, the scrollbar was not updated
2013-09-13(svn r25769) -Fix (r25344): Drawing of broken goal references was brokenzuu
2013-09-13(svn r25768) -Fix [FS#5617] (r25344): Story Book text elements that use font ↵zuu
size modifiers (eg {BIG_FONT}) caused problem with content height calculation. Solution: switch to pixel based content height instead of computing all heights as multiples of line heights.
2013-09-13(svn r25766) -Codechange: Use FONT_HEIGHT_NORMAL instead of checking the ↵zuu
height of a dummy string in Story gui
2013-09-12(svn r25759) -Fix (r25369): Set the owner flag of the goal and story windowszuu
2013-07-21(svn r25624) -Fix (r25620, r25623): Silence warningszuu
2013-06-09(svn r25387) -Fix: "typos" in @file filenamerubidium
2013-06-09(svn r25381) -Fix: Silent story book compiler warningszuu
2013-06-09(svn r25380) -Fix (r25344): Vertically center images of page elements in the ↵zuu
available vertical space
2013-06-09(svn r25372) -Add: Allow opening a goal list window specific to a companyzuu
2013-06-09(svn r25369) -Add: allow opening a story window specific to a companyzuu
2013-06-09(svn r25352) -Feature: GameScript API for selecting a story page to viewzuu
2013-06-09(svn r25344) -Feature: GUI for viewing story pageszuu