remove top buttons

This commit is contained in:
olebeck 2025-07-18 00:59:32 +02:00
parent b8b8fc4d19
commit 0ed1850509
2 changed files with 9 additions and 28 deletions

View File

@ -5,7 +5,7 @@
<pagetable>
<page id="page_main">
<plane style="_common_style_plane_transparent" id="main_plane">
<plane style="_common_style_plane_transparent">
<layout_hint size="960, 544" />
<box> <!-- horizontal -->
@ -20,28 +20,6 @@
<template_ref id="config_page_main" template="config_main"/>
<plane id="top_buttons" style="_common_style_plane_transparent"> <!-- top buttons -->
<layout_hint adjust="1, 0" size="0, 75" anchor="0, 2" align="0, 2" />
<box style="_common_default_style_box">
<layout_box space="20" layout_type="2" />
<button style="style_save_and_exit_button" id="save_exit_button"
label="msg_save_exit">
<layout_hint adjust="2, 2" />
</button>
<button style="style_save_and_launch_button" id="start_game_button"
label="msg_save_launch">
<layout_hint adjust="2, 2" />
</button>
<button style="style_exit_button" id="exit_button" label="msg_exit">
<layout_hint adjust="2, 2" />
</button>
</box>
</plane>
<plane id="bottom_buttons" style="_common_style_plane_transparent"> <!-- bottom buttons -->
<layout_hint adjust="1, 0" size="0, 75" anchor="0, 1" align="0, 1" />
@ -79,7 +57,7 @@
<layout_box layout_type="1" space="40" adjust="1, 2" left_margin="20" right_margin="20"/>
<plane style="_common_style_plane_transparent"> <!-- spacing for tabs on top -->
<layout_hint size="0, 60" adjust="1, 0" />
<layout_hint size="0, 0" adjust="1, 0" />
</plane>
<box> <!-- Island Texture Quality -->

View File

@ -6,18 +6,21 @@
paf::Framework* g_fw;
paf::ui::Scene* g_rootPage;
paf::Plugin* g_plugin;
void loadPluginCB(paf::Plugin* plugin)
{
paf::Plugin::PageOpenParam pageOpenParam;
pageOpenParam.option = paf::Plugin::PageOption_None;
g_plugin = plugin;
plugin->SetLocale(Locale_EN);
paf::Plugin::PageOpenParam pageOpenParam;
pageOpenParam.option = paf::Plugin::PageOption_None;
paf::ui::Scene* pScene = plugin->PageOpen("page_main", pageOpenParam);
g_rootPage = pScene;
pScene->FindChild("top_buttons")->Hide();
const auto saveAndExitButton = static_cast<paf::ui::Button*>(pScene->FindChild("save_exit_button"));
const auto startAndExitButton = static_cast<paf::ui::Button*>(pScene->FindChild("start_game_button"));
const auto exitButton = static_cast<paf::ui::Button*>(pScene->FindChild("exit_button"));
}
int paf_main(void)