Added fav icon
This commit is contained in:
parent
18540a3de2
commit
4fa244374a
8 changed files with 68 additions and 0 deletions
BIN
vmf_source/gui/header_fav_icon.dds
Normal file
BIN
vmf_source/gui/header_fav_icon.dds
Normal file
Binary file not shown.
18
vmf_source/gui/header_fav_icon.texture
Normal file
18
vmf_source/gui/header_fav_icon.texture
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
common = {
|
||||||
|
input = {
|
||||||
|
filename = "gui/header_fav_icon"
|
||||||
|
}
|
||||||
|
output = {
|
||||||
|
apply_processing = true
|
||||||
|
correct_gamma = true
|
||||||
|
cut_alpha_threshold = 0.5
|
||||||
|
enable_cut_alpha_threshold = false
|
||||||
|
format = "A8R8G8B8"
|
||||||
|
mipmap_filter = "kaiser"
|
||||||
|
mipmap_filter_wrap_mode = "mirror"
|
||||||
|
mipmap_keep_original = false
|
||||||
|
mipmap_num_largest_steps_to_discard = 0
|
||||||
|
mipmap_num_smallest_steps_to_discard = 0
|
||||||
|
srgb = true
|
||||||
|
}
|
||||||
|
}
|
BIN
vmf_source/gui/header_fav_icon_lit.dds
Normal file
BIN
vmf_source/gui/header_fav_icon_lit.dds
Normal file
Binary file not shown.
18
vmf_source/gui/header_fav_icon_lit.texture
Normal file
18
vmf_source/gui/header_fav_icon_lit.texture
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
common = {
|
||||||
|
input = {
|
||||||
|
filename = "gui/header_fav_icon_lit"
|
||||||
|
}
|
||||||
|
output = {
|
||||||
|
apply_processing = true
|
||||||
|
correct_gamma = true
|
||||||
|
cut_alpha_threshold = 0.5
|
||||||
|
enable_cut_alpha_threshold = false
|
||||||
|
format = "A8R8G8B8"
|
||||||
|
mipmap_filter = "kaiser"
|
||||||
|
mipmap_filter_wrap_mode = "mirror"
|
||||||
|
mipmap_keep_original = false
|
||||||
|
mipmap_num_largest_steps_to_discard = 0
|
||||||
|
mipmap_num_smallest_steps_to_discard = 0
|
||||||
|
srgb = true
|
||||||
|
}
|
||||||
|
}
|
14
vmf_source/materials/header_fav_icon.material
Normal file
14
vmf_source/materials/header_fav_icon.material
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
header_fav_icon = {
|
||||||
|
material_contexts = {
|
||||||
|
surface_material = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
shader = "gui_gradient:DIFFUSE_MAP:MASKED"
|
||||||
|
|
||||||
|
textures = {
|
||||||
|
diffuse_map = "gui/header_fav_icon"
|
||||||
|
}
|
||||||
|
|
||||||
|
variables = {
|
||||||
|
}
|
||||||
|
}
|
14
vmf_source/materials/header_fav_icon_lit.material
Normal file
14
vmf_source/materials/header_fav_icon_lit.material
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
header_fav_icon_lit = {
|
||||||
|
material_contexts = {
|
||||||
|
surface_material = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
shader = "gui_gradient:DIFFUSE_MAP:MASKED"
|
||||||
|
|
||||||
|
textures = {
|
||||||
|
diffuse_map = "gui/header_fav_icon_lit"
|
||||||
|
}
|
||||||
|
|
||||||
|
variables = {
|
||||||
|
}
|
||||||
|
}
|
|
@ -10,6 +10,8 @@ material = [
|
||||||
"materials/header_background"
|
"materials/header_background"
|
||||||
"materials/header_background_lit"
|
"materials/header_background_lit"
|
||||||
"materials/common_widgets_background_lit"
|
"materials/common_widgets_background_lit"
|
||||||
|
"materials/header_fav_icon"
|
||||||
|
"materials/header_fav_icon_lit"
|
||||||
]
|
]
|
||||||
|
|
||||||
lua = [
|
lua = [
|
||||||
|
|
|
@ -12,6 +12,8 @@ local vmf = get_mod("VMF")
|
||||||
inject_material("materials/header_background", "header_background", "ingame_ui")
|
inject_material("materials/header_background", "header_background", "ingame_ui")
|
||||||
inject_material("materials/header_background_lit", "header_background_lit", "ingame_ui")
|
inject_material("materials/header_background_lit", "header_background_lit", "ingame_ui")
|
||||||
inject_material("materials/common_widgets_background_lit", "common_widgets_background_lit", "ingame_ui")
|
inject_material("materials/common_widgets_background_lit", "common_widgets_background_lit", "ingame_ui")
|
||||||
|
inject_material("materials/header_fav_icon", "header_fav_icon", "ingame_ui")
|
||||||
|
inject_material("materials/header_fav_icon_lit", "header_fav_icon_lit", "ingame_ui")
|
||||||
|
|
||||||
--███████╗ ██████╗███████╗███╗ ██╗███████╗ ██████╗ ██████╗ █████╗ ██████╗ ██╗ ██╗███████╗
|
--███████╗ ██████╗███████╗███╗ ██╗███████╗ ██████╗ ██████╗ █████╗ ██████╗ ██╗ ██╗███████╗
|
||||||
--██╔════╝██╔════╝██╔════╝████╗ ██║██╔════╝██╔════╝ ██╔══██╗██╔══██╗██╔══██╗██║ ██║██╔════╝
|
--██╔════╝██╔════╝██╔════╝████╗ ██║██╔════╝██╔════╝ ██╔══██╗██╔══██╗██╔══██╗██║ ██║██╔════╝
|
||||||
|
|
Loading…
Add table
Reference in a new issue