mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
settings panel moved to xml (WIP)
This commit is contained in:
parent
7cb5b2eb70
commit
9cdf3ff016
33 changed files with 254 additions and 143 deletions
|
|
@ -11,7 +11,7 @@
|
|||
%{description}
|
||||
</label>
|
||||
<button if='%{remover}' onclick='%{remover}' color='0' hover-color='#FFFFFF2B'
|
||||
gravity='center-right' margin='10'>
|
||||
gravity='center-right' margin='10' padding='0'>
|
||||
<image src='gui/cross' size='32,32' color='#FFFFFF80'/>
|
||||
</button>
|
||||
<image pos='8,8' src='%{icon}' size='64'></image>
|
||||
|
|
|
|||
7
res/layouts/templates/track_setting.xml
Normal file
7
res/layouts/templates/track_setting.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<panel color='0' context='settings'>
|
||||
<label id='%{id}.L'>%{name}: %{value}%{postfix}</label>
|
||||
<trackbar
|
||||
value='%{value}' min='%{min}' max='%{max}'
|
||||
step='%{step}' track-width="%{track_width}"
|
||||
consumer='function(x) update_setting(x, "%{id}", "%{name}", "%{postfix}") end'/>
|
||||
</panel>
|
||||
15
res/layouts/templates/world.xml
Normal file
15
res/layouts/templates/world.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<container
|
||||
size='380,46'
|
||||
color='#0F1E2DB2'
|
||||
hover-color='#162B3399'
|
||||
onclick='core.open_world("%{name}")'
|
||||
>
|
||||
<label pos='8,8'>%{name}</label>
|
||||
<button pos='350,5'
|
||||
color='#00000000'
|
||||
hover-color='#FFFFFF2B'
|
||||
padding='0'
|
||||
onclick='core.delete_world("{%{name}}")'>
|
||||
<image src='gui/delete_icon' size='32,32' color='#FFFFFF80'/>
|
||||
</button>
|
||||
</container>
|
||||
Loading…
Add table
Add a link
Reference in a new issue