mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-14 14:29:24 +00:00
(360) Added libsnes core text to SSNES main screen and
dehardcoded SSNES version number - ASCII to Unicode messiness inside
This commit is contained in:
parent
38845d6ad5
commit
42b101b024
@ -16,7 +16,7 @@
|
||||
<Id>XuiBtnRomBrowser</Id>
|
||||
<Width>215.000000</Width>
|
||||
<Height>38.000000</Height>
|
||||
<Position>76.000000,91.000000,0.000000</Position>
|
||||
<Position>79.599976,55.000000,0.000000</Position>
|
||||
<NavUp>XuiBtnQuit</NavUp>
|
||||
<NavDown>XuiBtnSettings</NavDown>
|
||||
<Text>ROM Browser</Text>
|
||||
@ -27,7 +27,7 @@
|
||||
<Id>XuiTxtTitle</Id>
|
||||
<Width>240.000000</Width>
|
||||
<Height>40.000000</Height>
|
||||
<Position>81.453644,55.000000,0.000000</Position>
|
||||
<Position>85.053619,15.399994,0.000000</Position>
|
||||
<Text>SSNES 360</Text>
|
||||
<TextColor>0xff0f0f0f</TextColor>
|
||||
<DropShadowColor>0x800f0f0f</DropShadowColor>
|
||||
@ -40,7 +40,7 @@
|
||||
<Id>XuiBtnSettings</Id>
|
||||
<Width>215.000000</Width>
|
||||
<Height>38.000000</Height>
|
||||
<Position>76.000000,142.399994,0.000000</Position>
|
||||
<Position>79.599976,106.399994,0.000000</Position>
|
||||
<NavUp>XuiBtnRomBrowser</NavUp>
|
||||
<NavDown>XuiBtnQuit</NavDown>
|
||||
<Text>Settings</Text>
|
||||
@ -51,11 +51,31 @@
|
||||
<Id>XuiBtnQuit</Id>
|
||||
<Width>215.000000</Width>
|
||||
<Height>38.000000</Height>
|
||||
<Position>76.200012,191.399994,0.000000</Position>
|
||||
<Position>79.799988,155.399994,0.000000</Position>
|
||||
<NavUp>XuiBtnSettings</NavUp>
|
||||
<NavDown>XuiBtnRomBrowser</NavDown>
|
||||
<Text>Quit</Text>
|
||||
</Properties>
|
||||
</XuiButton>
|
||||
<XuiLabel>
|
||||
<Properties>
|
||||
<Id>XuiLblCore</Id>
|
||||
<Width>124.000000</Width>
|
||||
<Height>28.000000</Height>
|
||||
<Position>16.000000,209.200012,0.000000</Position>
|
||||
<Text>Libsnes core:</Text>
|
||||
</Properties>
|
||||
</XuiLabel>
|
||||
<XuiText>
|
||||
<Properties>
|
||||
<Id>XuiTxtCoreText</Id>
|
||||
<Width>224.399963</Width>
|
||||
<Height>34.000000</Height>
|
||||
<Position>138.400024,208.799988,0.000000</Position>
|
||||
<TextColor>0xff0f0f0f</TextColor>
|
||||
<DropShadowColor>0x800f0f0f</DropShadowColor>
|
||||
<Font>Arial Unicode MS</Font>
|
||||
</Properties>
|
||||
</XuiText>
|
||||
</XuiScene>
|
||||
</XuiCanvas>
|
||||
|
15
360/menu.cpp
15
360/menu.cpp
@ -50,7 +50,20 @@ HRESULT CMyMainScene::OnInit(XUIMessageInit * pInitData, BOOL& bHandled)
|
||||
GetChildById(L"XuiBtnSettings", &m_settings);
|
||||
GetChildById(L"XuiBtnQuit", &m_quit);
|
||||
GetChildById(L"XuiTxtTitle", &m_title);
|
||||
m_title.SetText(L"SSNES 0.9.4.1");
|
||||
GetChildById(L"XuiTxtCoreText", &m_core);
|
||||
const char * core_text = snes_library_id();
|
||||
char package_version[32];
|
||||
sprintf(package_version, "SSNES %s", PACKAGE_VERSION);
|
||||
DWORD dwNum = MultiByteToWideChar(CP_ACP, 0, core_text, -1, NULL, 0);
|
||||
DWORD dwNum_package = MultiByteToWideChar(CP_ACP, 0, package_version, -1, NULL, 0);
|
||||
wchar_t * core_text_utf = new wchar_t[dwNum];
|
||||
wchar_t * package_version_utf = new wchar_t[dwNum_package];
|
||||
MultiByteToWideChar(CP_ACP, 0, core_text, -1, core_text_utf, dwNum);
|
||||
MultiByteToWideChar(CP_ACP, 0, package_version, -1, package_version_utf, dwNum_package);
|
||||
m_core.SetText(core_text_utf);
|
||||
m_title.SetText(package_version_utf);
|
||||
delete []core_text_utf;
|
||||
delete []package_version_utf;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
@ -20,6 +20,7 @@ protected:
|
||||
CXuiControl m_settings;
|
||||
CXuiControl m_quit;
|
||||
CXuiTextElement m_title;
|
||||
CXuiTextElement m_core;
|
||||
public:
|
||||
HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
|
||||
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, BOOL& bHandled );
|
||||
|
Loading…
x
Reference in New Issue
Block a user