forked from townforge/townforge
game: hide show areas/flags options in found city mode
This commit is contained in:
parent
27457e0840
commit
72d2518089
@ -127,11 +127,12 @@ TBLayout: axis: y, distribution-position: "left top", distribution: "gravity"
|
||||
TBLayout: axis: y, gravity: "all", size: "available"
|
||||
UITBAnimatedImageWidget: id: "manual-map"
|
||||
|
||||
TBLayout: axis: x
|
||||
TBClickLabel: text: "Show areas"
|
||||
TBCheckBox: id: "show-named-areas"
|
||||
TBClickLabel: text: "Show flags"
|
||||
TBCheckBox: id: "show-flags"
|
||||
TBToggleContainer: id: "show-options-container", toggle: "expanded"
|
||||
TBLayout: axis: x
|
||||
TBClickLabel: text: "Show areas"
|
||||
TBCheckBox: id: "show-named-areas"
|
||||
TBClickLabel: text: "Show flags"
|
||||
TBCheckBox: id: "show-flags"
|
||||
|
||||
TBLayout: axis: x
|
||||
TBTextField: text: "postition:"
|
||||
|
@ -92,6 +92,7 @@ UICityMapsDialog::UICityMapsDialog(Context *ctx, const GameState *game, mode_t m
|
||||
showFlagsWidget = GetWidgetByIDAndType<TBCheckBox>(TBIDC("show-flags"));
|
||||
taglineErrorWidget = GetWidgetByIDAndType<TBTextField>(TBIDC("tagline-error"));
|
||||
taglineErrorContainer = GetWidgetByIDAndType<TBToggleContainer>(TBIDC("tagline-error-container"));
|
||||
showOptionsContainer = GetWidgetByIDAndType<TBToggleContainer>(TBIDC("show-options-container"));
|
||||
areaContainer = GetWidgetByIDAndType<TBToggleContainer>(TBIDC("area-container"));
|
||||
flagContainer = GetWidgetByIDAndType<TBToggleContainer>(TBIDC("flag-container"));
|
||||
|
||||
@ -136,6 +137,7 @@ UICityMapsDialog::UICityMapsDialog(Context *ctx, const GameState *game, mode_t m
|
||||
foundCityHeaderContainer->SetValue(mode == mode_found);
|
||||
foundCityFooterContainer->SetValue(mode == mode_found);
|
||||
|
||||
showOptionsContainer->SetValue(mode == mode_view);
|
||||
viewModeButtonsContainer->SetValue(mode == mode_view);
|
||||
idContainer->SetValue(mode == mode_found);
|
||||
|
||||
|
@ -120,6 +120,7 @@ private:
|
||||
tb::TBCheckBox *showFlagsWidget;
|
||||
tb::TBToggleContainer *taglineErrorContainer;
|
||||
tb::TBTextField *taglineErrorWidget;
|
||||
tb::TBToggleContainer *showOptionsContainer;
|
||||
tb::TBToggleContainer *areaContainer;
|
||||
tb::TBToggleContainer *flagContainer;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user