I18N: Switch to getting categories by index instead of by string lookup
Also gets rid of the shared_ptr usage, and generally makes things nicer. Needed for later config refactorings, good to get in early.
This commit is contained in:
parent
07b8b6f35a
commit
ee6234ecb6
65 changed files with 535 additions and 516 deletions
|
@ -80,9 +80,9 @@ void CwCheatScreen::LoadCheatInfo() {
|
|||
|
||||
void CwCheatScreen::CreateViews() {
|
||||
using namespace UI;
|
||||
auto cw = GetI18NCategory("CwCheats");
|
||||
auto di = GetI18NCategory("Dialog");
|
||||
auto mm = GetI18NCategory("MainMenu");
|
||||
auto cw = GetI18NCategory(I18NCat::CWCHEATS);
|
||||
auto di = GetI18NCategory(I18NCat::DIALOG);
|
||||
auto mm = GetI18NCategory(I18NCat::MAINMENU);
|
||||
|
||||
root_ = new AnchorLayout(new LayoutParams(FILL_PARENT, FILL_PARENT));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue