65 void SetModIcon(PlayerNumber pn,
const std::string& sText,
GameCommand& gc);
67 void ImportOptions(
const PlayerNumber& vpns);
68 int ExportOptions(
const PlayerNumber& vpns,
bool bRowHasFocus);
76 void InitText(RowType type);
77 void AfterImportOptions(PlayerNumber pn);
79 std::string GetRowTitle()
const;
81 void ChoicesChanged(RowType type,
bool reset_focus =
true);
82 void PositionUnderlines(PlayerNumber pn);
83 void PositionIcons(PlayerNumber pn);
84 void UpdateText(PlayerNumber pn);
85 bool GetRowHasFocus(PlayerNumber pn)
const {
return m_bRowHasFocus; }
86 void SetRowHasFocus(PlayerNumber pn,
bool bRowHasFocus);
87 void UpdateEnabledDisabled();
89 int GetOneSelection(PlayerNumber pn,
bool bAllowFail =
false)
const;
90 int GetOneSharedSelection(
bool bAllowFail =
false)
const;
91 void SetOneSelection(PlayerNumber pn,
int iChoice);
92 void SetOneSharedSelection(
int iChoice);
93 void SetOneSharedSelectionIfPresent(
const std::string& sChoice);
95 int GetChoiceInRowWithFocus()
const;
96 int GetChoiceInRowWithFocusShared()
const;
97 void SetChoiceInRowWithFocus(PlayerNumber pn,
int iChoice);
98 void ResetFocusFromSelection(PlayerNumber pn);
100 bool GetSelected(
int iChoice)
const;
102 bool SetSelected(PlayerNumber pn,
int iChoice,
bool b);
104 bool NotifyHandlerOfSelection(PlayerNumber pn,
int choice);
108 RowType GetRowType()
const {
return m_RowType; }
111 const BitmapText& GetTextItemForRow(PlayerNumber pn,
112 int iChoiceOnRow)
const;
113 void GetWidthXY(PlayerNumber pn,
121 unsigned GetTextItemsSize()
const {
return m_textItems.size(); }
122 bool GetFirstItemGoesDown()
const {
return m_bFirstItemGoesDown; }
123 bool GoToFirstOnStart();
125 std::string GetThemedItemText(
int iChoice)
const;
127 void SetExitText(
const std::string& sExitText);
132 void HandleMessage(
const Message& msg)
override;
135 void PushSelf(lua_State* L)
override;
144 std::vector<BitmapText*>
146 std::vector<OptionsCursor*> m_Underline;
154 bool m_bFirstItemGoesDown;
157 int m_iChoiceInRowWithFocus;
159 std::vector<bool> m_vbSelected;
An actor that holds a Font and draws text to the screen.
Definition BitmapText.h:11