mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-03-07 10:57:44 +00:00
(360) Give menu screens some more real estate (480p lowest res)
This commit is contained in:
parent
02996fbe2e
commit
996794134f
@ -223,7 +223,7 @@ begin_loop:
|
||||
args.verbose = g_extern.verbose;
|
||||
args.sram_path = NULL;
|
||||
args.state_path = NULL;
|
||||
args.config_path = NULL;
|
||||
|
||||
args.rom_path = g_console.rom_path;
|
||||
|
||||
int init_ret = ssnes_main_init_wrap(&args);
|
||||
|
@ -6,9 +6,9 @@
|
||||
<XuiScene>
|
||||
<Properties>
|
||||
<Id>XuiSceneFileBrowser</Id>
|
||||
<Width>410.000000</Width>
|
||||
<Height>251.000000</Height>
|
||||
<Position>439.013489,260.875977,0.000000</Position>
|
||||
<Width>575.888062</Width>
|
||||
<Height>336.017609</Height>
|
||||
<Position>353.995880,209.035965,0.000000</Position>
|
||||
<ClassOverride>SSNESFileBrowser</ClassOverride>
|
||||
</Properties>
|
||||
<XuiText>
|
||||
@ -27,9 +27,13 @@
|
||||
<XuiCommonList>
|
||||
<Properties>
|
||||
<Id>XuiRomList</Id>
|
||||
<Width>362.400024</Width>
|
||||
<Height>118.960022</Height>
|
||||
<Width>536.582458</Width>
|
||||
<Height>170.800018</Height>
|
||||
<Position>22.799980,81.600006,0.000000</Position>
|
||||
<NavLeft>XuiBackButton1</NavLeft>
|
||||
<NavRight>XuiBackButton1</NavRight>
|
||||
<NavUp>XuiBackButton1</NavUp>
|
||||
<NavDown>XuiBackButton1</NavDown>
|
||||
</Properties>
|
||||
<XuiListItem>
|
||||
<Properties>
|
||||
@ -43,13 +47,42 @@
|
||||
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
|
||||
</Properties>
|
||||
</XuiListItem>
|
||||
<XuiListItem>
|
||||
<Properties>
|
||||
<Id>control_ListItem</Id>
|
||||
<Width>226.000000</Width>
|
||||
<Height>45.000000</Height>
|
||||
<Position>7.000000,22.000000,0.000000</Position>
|
||||
<Anchor>5</Anchor>
|
||||
<Show>false</Show>
|
||||
<Visual>XuiButton</Visual>
|
||||
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
|
||||
</Properties>
|
||||
</XuiListItem>
|
||||
<XuiListItem>
|
||||
<Properties>
|
||||
<Id>control_ListItem</Id>
|
||||
<Width>226.000000</Width>
|
||||
<Height>45.000000</Height>
|
||||
<Position>7.000000,22.000000,0.000000</Position>
|
||||
<Anchor>5</Anchor>
|
||||
<Show>false</Show>
|
||||
<Visual>XuiButton</Visual>
|
||||
<InterItemSpacing>0.000000,10.000000,0.000000</InterItemSpacing>
|
||||
</Properties>
|
||||
</XuiListItem>
|
||||
</XuiCommonList>
|
||||
<XuiBackButton>
|
||||
<Properties>
|
||||
<Id>XuiBackButton1</Id>
|
||||
<Width>219.000000</Width>
|
||||
<Height>36.000000</Height>
|
||||
<Position>168.679993,202.600006,0.000000</Position>
|
||||
<Position>338.715210,281.396820,0.000000</Position>
|
||||
<NavLeft>XuiRomList</NavLeft>
|
||||
<NavRight>XuiRomList</NavRight>
|
||||
<NavUp>XuiRomList</NavUp>
|
||||
<NavDown>XuiRomList</NavDown>
|
||||
<Text>Go back to menu</Text>
|
||||
<PressKey>22593</PressKey>
|
||||
</Properties>
|
||||
</XuiBackButton>
|
||||
|
@ -6,17 +6,17 @@
|
||||
<XuiScene>
|
||||
<Properties>
|
||||
<Id>XuiScene1</Id>
|
||||
<Width>410.000000</Width>
|
||||
<Height>251.000000</Height>
|
||||
<Position>439.013489,260.875977,0.000000</Position>
|
||||
<Width>584.528076</Width>
|
||||
<Height>363.320007</Height>
|
||||
<Position>347.429474,184.843964,0.000000</Position>
|
||||
<ClassOverride>SSNESMain</ClassOverride>
|
||||
</Properties>
|
||||
<XuiButton>
|
||||
<Properties>
|
||||
<Id>XuiBtnRomBrowser</Id>
|
||||
<Width>215.000000</Width>
|
||||
<Width>481.112000</Width>
|
||||
<Height>38.000000</Height>
|
||||
<Position>79.599976,55.000000,0.000000</Position>
|
||||
<Position>43.887970,58.455994,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>85.053619,15.399994,0.000000</Position>
|
||||
<Position>49.341614,15.399994,0.000000</Position>
|
||||
<Text>SSNES 360</Text>
|
||||
<TextColor>0xff0f0f0f</TextColor>
|
||||
<DropShadowColor>0x800f0f0f</DropShadowColor>
|
||||
@ -38,9 +38,9 @@
|
||||
<XuiButton>
|
||||
<Properties>
|
||||
<Id>XuiBtnSettings</Id>
|
||||
<Width>215.000000</Width>
|
||||
<Width>481.112000</Width>
|
||||
<Height>38.000000</Height>
|
||||
<Position>79.599976,106.399994,0.000000</Position>
|
||||
<Position>43.887970,109.855988,0.000000</Position>
|
||||
<NavUp>XuiBtnRomBrowser</NavUp>
|
||||
<NavDown>XuiBtnQuit</NavDown>
|
||||
<Text>Settings</Text>
|
||||
@ -49,9 +49,9 @@
|
||||
<XuiButton>
|
||||
<Properties>
|
||||
<Id>XuiBtnQuit</Id>
|
||||
<Width>215.000000</Width>
|
||||
<Width>481.112000</Width>
|
||||
<Height>38.000000</Height>
|
||||
<Position>79.799988,155.399994,0.000000</Position>
|
||||
<Position>44.087982,158.855988,0.000000</Position>
|
||||
<NavUp>XuiBtnSettings</NavUp>
|
||||
<NavDown>XuiBtnRomBrowser</NavDown>
|
||||
<Text>Quit</Text>
|
||||
@ -62,7 +62,7 @@
|
||||
<Id>XuiLblCore</Id>
|
||||
<Width>124.000000</Width>
|
||||
<Height>28.000000</Height>
|
||||
<Position>16.000000,209.200012,0.000000</Position>
|
||||
<Position>12.544006,319.792023,0.000000</Position>
|
||||
<Text>Libsnes core:</Text>
|
||||
</Properties>
|
||||
</XuiLabel>
|
||||
@ -71,7 +71,7 @@
|
||||
<Id>XuiTxtCoreText</Id>
|
||||
<Width>224.399963</Width>
|
||||
<Height>34.000000</Height>
|
||||
<Position>138.400024,208.799988,0.000000</Position>
|
||||
<Position>134.944031,319.391998,0.000000</Position>
|
||||
<TextColor>0xff0f0f0f</TextColor>
|
||||
<DropShadowColor>0x800f0f0f</DropShadowColor>
|
||||
<Font>Arial Unicode MS</Font>
|
||||
|
@ -6,9 +6,9 @@
|
||||
<XuiTabScene>
|
||||
<Properties>
|
||||
<Id>XuiTabScene1</Id>
|
||||
<Width>499.856018</Width>
|
||||
<Height>289.015991</Height>
|
||||
<Position>392.000000,226.112015,0.000000</Position>
|
||||
<Width>586.256042</Width>
|
||||
<Height>363.320007</Height>
|
||||
<Position>345.343994,188.096008,0.000000</Position>
|
||||
<ClassOverride>SSNESSettings</ClassOverride>
|
||||
<DefaultFocus>XuiBtnRewind</DefaultFocus>
|
||||
</Properties>
|
||||
@ -29,7 +29,7 @@
|
||||
<Id>XuiBackButton1</Id>
|
||||
<Width>208.632019</Width>
|
||||
<Height>36.000000</Height>
|
||||
<Position>297.919983,239.880005,0.000000</Position>
|
||||
<Position>356.671997,309.000031,0.000000</Position>
|
||||
<Visual>XuiBackButton</Visual>
|
||||
<NavLeft>XuiBtnRewind</NavLeft>
|
||||
<NavRight>XuiBackButton1</NavRight>
|
||||
|
31
360/menu.cpp
31
360/menu.cpp
@ -56,6 +56,7 @@ HRESULT CSSNES::UnregisterXuiClasses (void)
|
||||
HRESULT CSSNESFileBrowser::OnInit(XUIMessageInit * pInitData, BOOL& bHandled)
|
||||
{
|
||||
GetChildById(L"XuiRomList", &m_romlist);
|
||||
GetChildById(L"XuiBackButton1", &m_back);
|
||||
GetChildById(L"XuiTxtRomPath", &m_rompathtitle);
|
||||
|
||||
filebrowser_parse_directory(&browser, "game:\\roms\\", ssnes_console_get_rom_ext());
|
||||
@ -111,15 +112,29 @@ HRESULT CSSNESMain::OnInit(XUIMessageInit * pInitData, BOOL& bHandled)
|
||||
|
||||
HRESULT CSSNESFileBrowser::OnNotifyPress( HXUIOBJ hObjPressed, BOOL& bHandled )
|
||||
{
|
||||
int index = m_romlist.GetCurSel();
|
||||
if(browser.cur[index].d_type != FILE_ATTRIBUTE_DIRECTORY)
|
||||
if(hObjPressed == m_romlist)
|
||||
{
|
||||
memset(strbuffer, 0, sizeof(strbuffer));
|
||||
wcstombs(strbuffer, (const wchar_t *)m_romlist.GetText(index), sizeof(strbuffer));
|
||||
sprintf(g_console.rom_path, "game:\\roms\\%s", strbuffer);
|
||||
g_console.menu_enable = false;
|
||||
g_console.mode_switch = MODE_EMULATION;
|
||||
init_ssnes = 1;
|
||||
int index = m_romlist.GetCurSel();
|
||||
if(browser.cur[index].d_type != FILE_ATTRIBUTE_DIRECTORY)
|
||||
{
|
||||
memset(strbuffer, 0, sizeof(strbuffer));
|
||||
wcstombs(strbuffer, (const wchar_t *)m_romlist.GetText(index), sizeof(strbuffer));
|
||||
sprintf(g_console.rom_path, "game:\\roms\\%s", strbuffer);
|
||||
g_console.menu_enable = false;
|
||||
g_console.mode_switch = MODE_EMULATION;
|
||||
init_ssnes = 1;
|
||||
}
|
||||
}
|
||||
else if(hObjPressed == m_back)
|
||||
{
|
||||
HRESULT hr = XuiSceneNavigateBack(hSSNESSettings, hMainScene, XUSER_INDEX_FOCUS);
|
||||
|
||||
if (FAILED(hr))
|
||||
{
|
||||
SSNES_ERR("Failed to load scene.\n");
|
||||
}
|
||||
|
||||
NavigateBack(hMainScene);
|
||||
}
|
||||
|
||||
bHandled = TRUE;
|
||||
|
@ -37,6 +37,7 @@ class CSSNESFileBrowser: public CXuiSceneImpl
|
||||
{
|
||||
protected:
|
||||
CXuiList m_romlist;
|
||||
CXuiControl m_back;
|
||||
CXuiTextElement m_rompathtitle;
|
||||
public:
|
||||
HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
|
||||
|
Loading…
x
Reference in New Issue
Block a user