mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 15:26:49 +01:00
add a new folder structure redesign organized by packages
This commit is contained in:
9
packages/core_styles/package.otml
Normal file
9
packages/core_styles/package.otml
Normal file
@@ -0,0 +1,9 @@
|
||||
title: Core styles
|
||||
description: Core styles used by other modules
|
||||
author: otclient
|
||||
version: 1
|
||||
website: https://github.com/edubart/otclient
|
||||
enabled: true
|
||||
dependencies: [core_fonts]
|
||||
script: styles.lua
|
||||
|
||||
12
packages/core_styles/styles.lua
Normal file
12
packages/core_styles/styles.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
-- set default font
|
||||
App.setDefaultFont("helvetica-11px")
|
||||
App.setDefaultFontColor(Color("#f0ad4dff"))
|
||||
|
||||
-- load styles
|
||||
App.loadStyle("styles/utilities")
|
||||
App.loadStyle("styles/panels")
|
||||
App.loadStyle("styles/buttons")
|
||||
App.loadStyle("styles/labels")
|
||||
App.loadStyle("styles/textedits")
|
||||
App.loadStyle("styles/windows")
|
||||
App.loadStyle("styles/linedecorations")
|
||||
BIN
packages/core_styles/styles/button_standard.png
Normal file
BIN
packages/core_styles/styles/button_standard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 825 B |
BIN
packages/core_styles/styles/button_standard_down.png
Normal file
BIN
packages/core_styles/styles/button_standard_down.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 833 B |
BIN
packages/core_styles/styles/button_standard_hover.png
Normal file
BIN
packages/core_styles/styles/button_standard_hover.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 859 B |
25
packages/core_styles/styles/buttons.otml
Normal file
25
packages/core_styles/styles/buttons.otml
Normal file
@@ -0,0 +1,25 @@
|
||||
button
|
||||
font: helvetica-11px-bold
|
||||
font-color: #f0ad4dff
|
||||
size: 106 24
|
||||
bordered-image: { source: button_standard.png; border: 5 }
|
||||
|
||||
button:hover
|
||||
bordered-image: { source: tibia_flash/button_standard_hover.png; border: 5 }
|
||||
|
||||
button:down
|
||||
text-translate: 1 1
|
||||
bordered-image: { source: tibia_flash/button_standard_down.png; border: 5 }
|
||||
|
||||
button.small
|
||||
width: 64
|
||||
|
||||
button.large
|
||||
width: 144
|
||||
|
||||
button.notImplemented
|
||||
onClick: displayErrorBox("Error", "Not implemented yet")
|
||||
|
||||
button.closeParent
|
||||
onClick: self.parent:destroy()
|
||||
|
||||
0
packages/core_styles/styles/labels.otml
Normal file
0
packages/core_styles/styles/labels.otml
Normal file
0
packages/core_styles/styles/linedecorations.otml
Normal file
0
packages/core_styles/styles/linedecorations.otml
Normal file
0
packages/core_styles/styles/panels.otml
Normal file
0
packages/core_styles/styles/panels.otml
Normal file
0
packages/core_styles/styles/textedits.otml
Normal file
0
packages/core_styles/styles/textedits.otml
Normal file
0
packages/core_styles/styles/utilities.otml
Normal file
0
packages/core_styles/styles/utilities.otml
Normal file
0
packages/core_styles/styles/windows.otml
Normal file
0
packages/core_styles/styles/windows.otml
Normal file
Reference in New Issue
Block a user