fix interface glitches
This commit is contained in:
parent
f4f0d7e960
commit
eeb46ac795
|
@ -13,7 +13,6 @@ Module
|
||||||
require 'constants'
|
require 'constants'
|
||||||
require 'util'
|
require 'util'
|
||||||
require 'widget'
|
require 'widget'
|
||||||
require 'ui'
|
|
||||||
require 'messagebox/messagebox'
|
require 'messagebox/messagebox'
|
||||||
require 'dispatcher'
|
require 'dispatcher'
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ Button < UIButton
|
||||||
background-color: white
|
background-color: white
|
||||||
color: #f0ad4dff
|
color: #f0ad4dff
|
||||||
size: 106 24
|
size: 106 24
|
||||||
|
text-translate: 0 0
|
||||||
border-image:
|
border-image:
|
||||||
source: /core_ui/images/button.png
|
source: /core_ui/images/button.png
|
||||||
border: 5
|
border: 5
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
LineEdit < UILineEdit
|
LineEdit < UILineEdit
|
||||||
font: helvetica-12px
|
font: helvetica-12px
|
||||||
size: 86 20
|
size: 86 20
|
||||||
text-margin: 3
|
text margin: 3
|
||||||
border-image:
|
border-image:
|
||||||
source: /core_ui/images/panel_flat.png
|
source: /core_ui/images/panel_flat.png
|
||||||
border: 1
|
border: 1
|
||||||
|
|
|
@ -3,21 +3,12 @@ Window < UIWindow
|
||||||
size: 200 200
|
size: 200 200
|
||||||
opacity: 255
|
opacity: 255
|
||||||
background-color: white
|
background-color: white
|
||||||
head:
|
head height: 20
|
||||||
height: 20
|
head text align: center
|
||||||
border-image:
|
border-image:
|
||||||
source: /core_ui/images/window.png
|
source: /core_ui/images/window.png
|
||||||
size: 256 19
|
border: 4
|
||||||
border: 4
|
border.top: 20
|
||||||
border.bottom: 3
|
|
||||||
|
|
||||||
body:
|
|
||||||
border-image:
|
|
||||||
source: /core_ui/images/window.png
|
|
||||||
size: 256 237
|
|
||||||
offset: 0 19
|
|
||||||
border: 4
|
|
||||||
border.top: 0
|
|
||||||
|
|
||||||
state.pressed:
|
state.pressed:
|
||||||
opacity: 192
|
opacity: 192
|
||||||
|
|
|
@ -52,4 +52,4 @@ MainWindow
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
margin.bottom: 16
|
margin.bottom: 16
|
||||||
margin.right: 16
|
margin.right: 16
|
||||||
onClick: function(self) GFX.fadeOut(self:getParent()) end
|
onClick: function(self) self:getParent():destroy() end
|
||||||
|
|
Loading…
Reference in New Issue