66 mAssignKeyButton(
new Button(this,
_(
"Assign"),
"assign",
69 mUnassignKeyButton(
new Button(this,
_(
"Unassign"),
"unassign",
72 mDefaultButton(
new Button(this,
_(
"Default"),
"default",
75 mResetKeysButton(
new Button(this,
_(
"Reset all keys"),
"resetkeys",
114 while (
pages[k] !=
nullptr)
126 place(0, 0,
mTabs, 5, 1);
165 _(
"Key Conflict(s) Detected."),
167 strprintf(
_(
"Conflict \"%s\" and \"%s\" keys. "
168 "Resolve them, or gameplay may result in strange behaviour."),
169 gettext(str1.c_str()), gettext(str2.c_str())),
192 const std::string &
id =
event.getId();
216 else if (
id ==
"assign")
228 gettext(key.
name.c_str())).append(
": ?"));
231 else if (
id ==
"unassign")
245 else if (
id ==
"resetkeys")
251 else if (
id ==
"default")
265 std::string str(
"tabs_");
266 while (
pages[k] !=
nullptr)
268 if (str +
pages[k] ==
id)
272 if ((
pages[k] !=
nullptr) && str +
pages[k] ==
id)
288 const std::string str(
" \342\200\225\342\200\225\342\200\225"
289 "\342\200\225\342\200\225 ");
291 str + gettext(key.
name.c_str()) + str);
295 std::string str = gettext(key.
name.c_str());
296 unsigned int sz = 20;
299 while (str.size() < sz)
361 const std::string &text)
365 while (!actionDatas[k].name.empty())
370 if (actionId >= actionStart && actionId <= actionEnd)
373 actionId - actionStart + 1);
389 "Emote Shortcut %d");
394 "Craft shortcut %d");
399 "Outfit Shortcut %d");
404 "Move to point Shortcut %d");
int getIntValue(const std::string &key) const
Widget * getSource() const
Font * getHelpFont() const
void setSize(const int size)
int getSelectedData() const
void setElementAt(const int i, const std::string &caption)
void setSelectedData(const int i)
void setEnabled(const bool flag)
ContainerPlacer getPlacer(const int x, const int y)
void setSelected(const int selected)
void setName(const std::string &name)
SetupActionData setupActionDataCraft[]
SetupActionData setupActionDataEmotes[]
SetupActionData setupActionDataMove[]
SetupActionData *const setupActionData[]
SetupActionData setupActionDataOutfits[]
const char *const pages[SETUP_PAGES+1]
SetupActionData setupActionDataShortcuts[]
const bool ShowCenter_true
std::string strprintf(const char *const format,...)
bool strStartWith(const std::string &str1, const std::string &str2)
const InputActionT actionId