2022-07-04 05:10:31 +02:00
|
|
|
local fmt = string.format
|
|
|
|
|
2021-06-25 04:21:23 +02:00
|
|
|
local PNG = {
|
2021-12-07 01:27:43 +01:00
|
|
|
blank = "i3_blank.png",
|
2021-06-25 04:21:23 +02:00
|
|
|
bg = "i3_bg.png",
|
|
|
|
bg_full = "i3_bg_full.png",
|
2022-08-14 19:18:29 +02:00
|
|
|
bg_goto = "i3_bg_goto.png",
|
2021-11-14 21:39:48 +01:00
|
|
|
bg_content = "i3_bg_content.png",
|
2021-06-25 04:21:23 +02:00
|
|
|
bar = "i3_bar.png",
|
|
|
|
hotbar = "i3_hotbar.png",
|
2022-08-14 19:32:16 +02:00
|
|
|
highlight = "i3_highlight.png",
|
2021-06-25 04:21:23 +02:00
|
|
|
search = "i3_search.png",
|
|
|
|
heart = "i3_heart.png",
|
|
|
|
heart_half = "i3_heart_half.png",
|
|
|
|
prev = "i3_next.png^\\[transformFX",
|
|
|
|
next = "i3_next.png",
|
|
|
|
arrow = "i3_arrow.png",
|
2021-11-14 21:39:48 +01:00
|
|
|
arrow_content = "i3_arrow_content.png",
|
2021-06-25 04:21:23 +02:00
|
|
|
trash = "i3_trash.png",
|
2021-10-31 22:11:41 +01:00
|
|
|
sort = "i3_sort.png",
|
|
|
|
settings = "i3_settings.png",
|
2021-06-25 04:21:23 +02:00
|
|
|
compress = "i3_compress.png",
|
|
|
|
fire = "i3_fire.png",
|
|
|
|
fire_anim = "i3_fire_anim.png",
|
|
|
|
book = "i3_book.png",
|
|
|
|
sign = "i3_sign.png",
|
|
|
|
cancel = "i3_cancel.png",
|
2022-08-14 20:12:28 +02:00
|
|
|
crafting = "i3_crafting.png",
|
2022-07-04 05:10:31 +02:00
|
|
|
slot = "i3_slot.png^\\[resize:128x128",
|
2022-08-14 19:18:29 +02:00
|
|
|
pagenum_hover = "i3_slot.png^\\[resize:128x128^\\[opacity:130",
|
2021-06-25 04:21:23 +02:00
|
|
|
tab = "i3_tab.png",
|
2021-06-26 04:40:57 +02:00
|
|
|
tab_small = "i3_tab_small.png",
|
2021-06-25 04:21:23 +02:00
|
|
|
tab_top = "i3_tab.png^\\[transformFY",
|
|
|
|
furnace_anim = "i3_furnace_anim.png",
|
2021-12-07 01:27:43 +01:00
|
|
|
shapeless = "i3_shapeless.png",
|
2021-06-25 04:21:23 +02:00
|
|
|
bag = "i3_bag.png",
|
|
|
|
armor = "i3_armor.png",
|
|
|
|
awards = "i3_award.png",
|
|
|
|
skins = "i3_skin.png",
|
|
|
|
waypoints = "i3_waypoint.png",
|
|
|
|
add = "i3_add.png",
|
|
|
|
refresh = "i3_refresh.png",
|
|
|
|
visible = "i3_visible.png^\\[brighten",
|
|
|
|
nonvisible = "i3_non_visible.png",
|
|
|
|
exit = "i3_exit.png",
|
2021-10-31 22:11:41 +01:00
|
|
|
home = "i3_home.png",
|
2022-10-02 13:49:06 +02:00
|
|
|
flag = "i3_flag_anim.png",
|
2021-11-30 02:28:11 +01:00
|
|
|
edit = "i3_edit.png",
|
2022-06-30 16:31:43 +02:00
|
|
|
no_result = "i3_no_result.png",
|
|
|
|
find_more = "i3_find_more.png",
|
2022-08-01 03:51:35 +02:00
|
|
|
search_outline = "i3_search_outline.png",
|
2022-08-08 22:09:39 +02:00
|
|
|
search_outline_trim = "i3_search_outline_trim.png",
|
2022-08-15 20:15:43 +02:00
|
|
|
all = "i3_all.png",
|
|
|
|
node = "i3_node.png",
|
|
|
|
item = "i3_item.png",
|
2022-09-25 15:37:32 +02:00
|
|
|
cube = "i3_cube.png",
|
2023-02-01 16:15:37 +01:00
|
|
|
home_px = "i3_home_px.png",
|
|
|
|
home_px_hover = "i3_home_px_hover.png",
|
2021-06-25 04:21:23 +02:00
|
|
|
|
|
|
|
cancel_hover = "i3_cancel.png^\\[brighten",
|
|
|
|
search_hover = "i3_search.png^\\[brighten",
|
2022-08-14 20:12:28 +02:00
|
|
|
crafting_hover = "i3_crafting.png^\\[brighten",
|
2021-06-25 04:21:23 +02:00
|
|
|
trash_hover = "i3_trash.png^\\[brighten^\\[colorize:#f00:100",
|
|
|
|
compress_hover = "i3_compress.png^\\[brighten",
|
2021-10-31 22:11:41 +01:00
|
|
|
sort_hover = "i3_sort.png^\\[brighten",
|
|
|
|
settings_hover = "i3_settings.png^\\[brighten",
|
2021-06-25 04:21:23 +02:00
|
|
|
prev_hover = "i3_next_hover.png^\\[transformFX",
|
|
|
|
next_hover = "i3_next_hover.png",
|
|
|
|
tab_hover = "i3_tab_hover.png",
|
2021-06-26 04:40:57 +02:00
|
|
|
tab_small_hover = "i3_tab_small_hover.png",
|
2021-06-25 04:21:23 +02:00
|
|
|
tab_hover_top = "i3_tab_hover.png^\\[transformFY",
|
|
|
|
bag_hover = "i3_bag_hover.png",
|
|
|
|
armor_hover = "i3_armor_hover.png",
|
|
|
|
awards_hover = "i3_award_hover.png",
|
|
|
|
skins_hover = "i3_skin_hover.png",
|
|
|
|
waypoints_hover = "i3_waypoint_hover.png",
|
|
|
|
add_hover = "i3_add.png^\\[brighten",
|
|
|
|
refresh_hover = "i3_refresh.png^\\[brighten",
|
|
|
|
exit_hover = "i3_exit.png^\\[brighten",
|
2021-10-31 22:11:41 +01:00
|
|
|
home_hover = "i3_home.png^\\[brighten",
|
2021-11-30 02:28:11 +01:00
|
|
|
edit_hover = "i3_edit.png^\\[brighten",
|
2022-08-15 20:15:43 +02:00
|
|
|
all_hover = "i3_all_on.png^\\[brighten",
|
|
|
|
node_hover = "i3_node_on.png^\\[brighten",
|
|
|
|
item_hover = "i3_item_on.png^\\[brighten",
|
2021-06-25 04:21:23 +02:00
|
|
|
}
|
|
|
|
|
2021-10-24 23:31:01 +02:00
|
|
|
local styles = string.format([[
|
2023-02-01 02:44:14 +01:00
|
|
|
listcolors[#bababa50;#bababa99]
|
|
|
|
|
|
|
|
style_type[list;size=1;spacing=0.15]
|
2021-06-25 04:21:23 +02:00
|
|
|
style_type[field;border=false;bgcolor=transparent]
|
|
|
|
style_type[label,field;font_size=16]
|
|
|
|
style_type[button;border=false;content_offset=0]
|
2021-11-14 21:39:48 +01:00
|
|
|
style_type[image_button,item_image_button,checkbox,dropdown;border=false;sound=i3_click]
|
2022-08-07 00:42:52 +02:00
|
|
|
style_type[item_image_button;bgimg_middle=9;padding=-9]
|
|
|
|
style_type[item_image_button:hovered;bgimg=%s]
|
2021-06-25 04:21:23 +02:00
|
|
|
|
2022-04-25 19:24:24 +02:00
|
|
|
style[;sound=]
|
2021-11-14 21:39:48 +01:00
|
|
|
style[nofav;sound=i3_cannot]
|
2022-08-15 20:15:43 +02:00
|
|
|
style[search;content_offset=0]
|
2021-06-25 04:21:23 +02:00
|
|
|
style[pagenum,no_item,no_rcp;font=bold;font_size=18]
|
2022-08-01 04:10:16 +02:00
|
|
|
style[enable_search:hovered;bgimg=%s]
|
2021-06-25 04:21:23 +02:00
|
|
|
style[exit;fgimg=%s;fgimg_hovered=%s;content_offset=0]
|
|
|
|
style[cancel;fgimg=%s;fgimg_hovered=%s;content_offset=0]
|
2022-02-26 02:09:53 +01:00
|
|
|
style[prev_page,prev_recipe,prev_usage,prev_sort,prev_skin;fgimg=%s;fgimg_hovered=%s]
|
|
|
|
style[next_page,next_recipe,next_usage,next_sort,next_skin;fgimg=%s;fgimg_hovered=%s]
|
2021-06-25 04:21:23 +02:00
|
|
|
style[waypoint_add;fgimg=%s;fgimg_hovered=%s;content_offset=0]
|
2021-11-30 02:28:11 +01:00
|
|
|
style[bag_rename;fgimg=%s;fgimg_hovered=%s;content_offset=0]
|
2021-06-25 04:21:23 +02:00
|
|
|
style[btn_bag,btn_armor,btn_skins;font=bold;font_size=18;content_offset=0;sound=i3_click]
|
|
|
|
style[craft_rcp,craft_usg;noclip=true;font_size=16;sound=i3_craft;
|
|
|
|
bgimg=i3_btn9.png;bgimg_hovered=i3_btn9_hovered.png;
|
2021-07-05 23:38:43 +02:00
|
|
|
bgimg_pressed=i3_btn9_pressed.png;bgimg_middle=4,6]
|
2021-10-31 22:11:41 +01:00
|
|
|
style[confirm_trash_yes,confirm_trash_no,set_home;noclip=true;font_size=16;
|
2021-07-05 23:38:43 +02:00
|
|
|
bgimg=i3_btn9.png;bgimg_hovered=i3_btn9_hovered.png;
|
2021-06-25 04:21:23 +02:00
|
|
|
bgimg_pressed=i3_btn9_pressed.png;bgimg_middle=4,6]
|
2021-11-08 18:46:45 +01:00
|
|
|
style[confirm_trash_yes;sound=i3_trash]
|
2021-06-25 04:21:23 +02:00
|
|
|
]],
|
|
|
|
PNG.slot,
|
2022-09-20 01:12:07 +02:00
|
|
|
PNG.search_outline,
|
2022-08-15 20:15:43 +02:00
|
|
|
PNG.exit, PNG.exit_hover,
|
|
|
|
PNG.cancel, PNG.cancel_hover,
|
|
|
|
PNG.prev, PNG.prev_hover,
|
|
|
|
PNG.next, PNG.next_hover,
|
|
|
|
PNG.add, PNG.add_hover,
|
|
|
|
PNG.edit, PNG.edit_hover)
|
2021-06-25 04:21:23 +02:00
|
|
|
|
|
|
|
local fs_elements = {
|
|
|
|
label = "label[%f,%f;%s]",
|
|
|
|
box = "box[%f,%f;%f,%f;%s]",
|
|
|
|
image = "image[%f,%f;%f,%f;%s]",
|
|
|
|
tooltip = "tooltip[%f,%f;%f,%f;%s]",
|
|
|
|
button = "button[%f,%f;%f,%f;%s;%s]",
|
2021-10-31 22:11:41 +01:00
|
|
|
checkbox = "checkbox[%f,%f;%s;%s;%s]",
|
2022-07-04 05:10:31 +02:00
|
|
|
slot = "image[%f,%f;%f,%f;" .. fmt("%s;9]", PNG.slot),
|
2021-06-25 04:21:23 +02:00
|
|
|
item_image = "item_image[%f,%f;%f,%f;%s]",
|
|
|
|
hypertext = "hypertext[%f,%f;%f,%f;%s;%s]",
|
2022-07-04 05:10:31 +02:00
|
|
|
bg9 = "background9[%f,%f;%f,%f;%s;false;12]",
|
2021-06-25 04:21:23 +02:00
|
|
|
scrollbar = "scrollbar[%f,%f;%f,%f;%s;%s;%u]",
|
|
|
|
model = "model[%f,%f;%f,%f;%s;%s;%s;%s;%s;%s;%s]",
|
|
|
|
image_button = "image_button[%f,%f;%f,%f;%s;%s;%s]",
|
|
|
|
animated_image = "animated_image[%f,%f;%f,%f;;%s;%u;%u]",
|
|
|
|
item_image_button = "item_image_button[%f,%f;%f,%f;%s;%s;%s]",
|
|
|
|
}
|
|
|
|
|
2021-11-15 00:46:02 +01:00
|
|
|
local colors = {
|
|
|
|
yellow = "#ffd866",
|
|
|
|
black = "#2d2a2e",
|
|
|
|
blue = "#7bf",
|
|
|
|
}
|
|
|
|
|
|
|
|
return PNG, styles, fs_elements, colors
|