settings panel moved to xml (WIP)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user