-- ui/templates.lua
-- NOTE: this file is never autogenerated nor overwritten by NEXUS.

--
--         DEFAULT Components
--         ------------------
--
-- You are required to have Default components for each component type.
-- All names MUST be "Default*", where * is the component name, first letter
-- in upper case (eg. "DefaultButton").
--

CreateComp ("LABEL", "DefaultLabel");
SetProperty ("label.font", "fonts/small.mft");

CreateComp ("LABEL", "BigLabel");
SetProperty ("label.font", "fonts/big.mft");
--SetProperty ("color.r", 1.0);
--SetProperty ("color.g", 0.5);
--SetProperty ("color.b", 0.1);
--SetProperty ("color.a", 1.0);

CreateComp ("BUTTON", "DefaultButton");
SetProperty ("snd_over", "ui/sfx/button-over.ogg"); -- note that this attribute is for all component types
SetProperty ("snd_press", "ui/sfx/button-press.ogg");
--SetProperty ("snd_release", "ui/sfx/button-press.ogg");
SetProperty ("button.font", "fonts/small.mft");
SetProperty ("button.bm_idle", "ui/gfx/button-medium-idle.png");
SetProperty ("button.bm_over", "ui/gfx/button-medium-over.png");
SetProperty ("button.bm_pressed", "ui/gfx/button-medium-pressed.png");
SetProperty ("button.bm_disabled", "ui/gfx/button-medium-disabled.png");
SetProperty ("button.text_offset", 0, -1);
--SetProperty ("button.text_color_idle", 0.05, 0.025, 0, 0.9);
--SetProperty ("button.text_color_over", 0, 0, 0, 1);
--SetProperty ("button.text_color_pressed", 0, 0, 0, 1);
--SetProperty ("button.text_color_disabled", 0, 0, 0, 1);
SetProperty ("button.scale_idle", 1);
SetProperty ("button.scale_over", 1.0);--3);
SetProperty ("button.scale_pressed", 1);
SetProperty ("button.scale_disabled", 1);
SetProperty ("button.text_scale_idle", 1);
SetProperty ("button.text_scale_over", 1.05);
SetProperty ("button.text_scale_pressed", 1);
SetProperty ("button.text_scale_disabled", 1);





CreateComp ("BUTTON", "MPButton");
SetProperty ("snd_over", "ui/sfx/button-over.ogg"); 
SetProperty ("snd_press", "ui/sfx/button-press.ogg");
SetProperty ("button.font", "fonts/small.mft");
SetProperty ("button.bm_idle", "mythpeople/mythpeople-logo.png");
SetProperty ("button.bm_over", "mythpeople/mythpeople-logo.png");
SetProperty ("button.bm_pressed", "mythpeople/mythpeople-logo.png");
SetProperty ("button.bm_disabled", "mythpeople/mythpeople-logo.png");



CreateComp ("SLIDER", "DefaultSlider");
SetProperty ("snd_over", "ui/sfx/button-over.ogg");
SetProperty ("slider.bm_panel", "ui/gfx/slider-panel.png");
SetProperty ("slider.bm_panel_over", "ui/gfx/slider-panel-over.png");
SetProperty ("slider.bm_full", "ui/gfx/slider-full.png");
SetProperty ("slider.bm_marker", "ui/gfx/slider-marker.png");
SetProperty ("slider.padding", 28, 24);

CreateComp ("SLIDER", "ProgressSlider");
SetProperty ("snd_over", "ui/sfx/button-over.ogg");
SetProperty ("slider.bm_panel", "ui/gfx/slider-panel.png");
SetProperty ("slider.bm_panel_over", "ui/gfx/slider-panel-over.png");
SetProperty ("slider.bm_full", "ui/gfx/slider-full.png");
SetProperty ("slider.bm_marker", "!NONE");
SetProperty ("slider.padding", 10, 16);

CreateComp ("EDITBOX", "DefaultEditbox");
SetProperty ("snd_over", "ui/sfx/button-over.ogg"); -- note that this attribute is for all component types
SetProperty ("snd_press", "ui/sfx/button-press.ogg");
SetProperty ("editbox.font", "fonts/small.mft");
SetProperty ("editbox.bm_cursor", "ui/gfx/editbox-cursor.png");
SetProperty ("editbox.bm_panel", "ui/gfx/button-profile-idle.png");
SetProperty ("editbox.bm_panel_over", "ui/gfx/button-profile-over.png");
SetProperty ("editbox.padding", 30); -- pixels to pad on left and right
SetProperty ("editbox.max_chars", 32);

CreateComp ("CHECKBOX", "DefaultCheckbox");
SetProperty ("snd_over", "ui/sfx/button-over.ogg"); -- note that this attribute is for all component types
SetProperty ("snd_press", "ui/sfx/button-press.ogg");
SetProperty ("checkbox.font", "fonts/small.mft");
SetProperty ("checkbox.bm_idle", "ui/gfx/checkbox-idle.png");
SetProperty ("checkbox.bm_over", "ui/gfx/checkbox-over.png");
SetProperty ("checkbox.bm_pressed", "ui/gfx/checkbox-pressed.png");
SetProperty ("checkbox.bm_disabled", "ui/gfx/checkbox-disabled.png");
SetProperty ("checkbox.bm_marker", "ui/gfx/checkbox-marker.png");



CreateComp ("LISTBOX", "DefaultListbox");
SetProperty ("snd_over", "ui/sfx/button-over.ogg");
SetProperty ("listbox.bm_frame", "!NONE");

CreateComp ("PATH", "DefaultPath");
--SetProperty ("path.point", -10, -10);


CreateComp ("EMITTER", "DefaultEmitter");
SetProperty ("emitter.time_interval", 0.3);
SetProperty ("emitter.initial_simulation_time", 0.0);

--
--         Custom Components
--         -----------------
--
-- You can have as many custom templates for components as you want.
-- Note that all of these also inherit the values of Default Components.
--


-- Fader label meant for full screen overlays to make popup screen stand
-- out from the background better.
CreateComp ("LABEL", "FaderLabel");
SetProperty ("position", 0, 0);
SetProperty ("color.r", 0.5);
SetProperty ("color.g", 0.5);
SetProperty ("color.b", 0.8);
SetProperty ("color.a", 0.45);
--SetProperty ("blend_mode", "ADDITIVE");
SetProperty ("label.rect_width", GetVar ("ScreenWidth"));
SetProperty ("label.rect_height", GetVar ("ScreenHeight"));

CreateComp ("LABEL", "FaderLabel2");
SetProperty ("position", 0, 0);
SetProperty ("color.r", 0.0);
SetProperty ("color.g", 0.1);
SetProperty ("color.b", 0.27);
SetProperty ("color.a", 0.5);
--SetProperty ("blend_mode", "ADDITIVE");
SetProperty ("label.rect_width", GetVar ("ScreenWidth"));
SetProperty ("label.rect_height", GetVar ("ScreenHeight"));

CreateComp ("LABEL", "HiddenSpotLabel");
SetProperty ("position", 0, 0);
--SetProperty ("blend_mode", "ADDITIVE");
SetProperty ("label.rect_width", 20);
SetProperty ("label.rect_height", 20);
SetProperty ("color.a", 0);--0.45);
SetProperty ("color.r", 0.15);
SetProperty ("color.g", 0.35);
SetProperty ("color.b", 1);
SetProperty ("label.font", "!NONE");

CreateComp ("LABEL", "SmallLabel");
SetProperty ("label.font", "fonts/small.mft");


CreateComp ("LABEL", "SmallDarkLabel");
SetProperty ("label.font", "fonts/small-no-shadow.mft");
SetProperty ("color.r", 33/255.0);
SetProperty ("color.g", 16/255.0);
SetProperty ("color.b", 8/255.0);

CreateComp ("BUTTON", "SmallButton");
SetProperty ("button.bm_idle", "ui/gfx/button-small-idle.png");
SetProperty ("button.bm_over", "ui/gfx/button-small-over.png");
SetProperty ("button.bm_pressed", "ui/gfx/button-small-pressed.png");
SetProperty ("button.bm_disabled", "ui/gfx/button-small-disabled.png");

CreateComp ("BUTTON", "MapTrophyButton");
SetProperty ("button.bm_idle", "ui/gfx/button-trophy-idle.png");
SetProperty ("button.bm_over", "ui/gfx/button-trophy-over.png");
SetProperty ("button.bm_pressed", "ui/gfx/button-trophy-over.png");
SetProperty ("button.bm_disabled", "ui/gfx/button-trophy-disabled.png");

CreateComp ("BUTTON", "BigButton");
SetProperty ("snd_over", "ui/sfx/button-over.ogg"); -- note that this attribute is for all component types
SetProperty ("snd_press", "ui/sfx/button-press.ogg");
--SetProperty ("snd_release", "ui/sfx/button-press.ogg");
SetProperty ("button.font", "fonts/small.mft");
SetProperty ("button.bm_idle", "ui/gfx/button-big-idle.png");
SetProperty ("button.bm_over", "ui/gfx/button-big-over.png");
SetProperty ("button.bm_pressed", "ui/gfx/button-big-pressed.png");
SetProperty ("button.bm_disabled", "ui/gfx/button-big-disabled.png");

CreateComp ("BUTTON", "BigButtonBigText");
SetProperty ("snd_over", "ui/sfx/button-over.ogg"); -- note that this attribute is for all component types
SetProperty ("snd_press", "ui/sfx/button-press.ogg");
--SetProperty ("snd_release", "ui/sfx/button-press.ogg");
SetProperty ("button.font", "fonts/big.mft");
SetProperty ("button.bm_idle", "ui/gfx/button-big-idle.png");
SetProperty ("button.bm_over", "ui/gfx/button-big-over.png");
SetProperty ("button.bm_pressed", "ui/gfx/button-big-pressed.png");
SetProperty ("button.bm_disabled", "ui/gfx/button-big-disabled.png");
SetProperty ("button.text_offset", 0, -12);

CreateComp ("BUTTON", "ProfileButton");
SetProperty ("button.bm_idle", "ui/gfx/button-profile-idle.png");
SetProperty ("button.bm_over", "ui/gfx/button-profile-over.png");
SetProperty ("button.bm_pressed", "ui/gfx/button-profile-pressed.png");
SetProperty ("button.bm_disabled", "ui/gfx/button-profile-disabled.png");
SetProperty ("button.text_color_idle", 0, 0, 0, 1);
SetProperty ("button.text_color_over", 1, 1, 1, 1);
SetProperty ("button.text_color_pressed", 1, 1, 1, 1);
SetProperty ("button.text_color_disabled", 1, 1, 1, 1);

CreateComp ("BUTTON", "WideProfileButton");
SetProperty ("button.bm_idle", "ui/gfx/button-wide-idle.png");
SetProperty ("button.bm_over", "ui/gfx/button-wide-over.png");
SetProperty ("button.bm_pressed", "ui/gfx/button-wide-pressed.png");
SetProperty ("button.bm_disabled", "ui/gfx/button-wide-disabled.png");
SetProperty ("button.text_color_idle", 1, 1, 1, 1);
SetProperty ("button.text_color_over", 1, 0.8, 0.1, 1);
SetProperty ("button.text_color_pressed", 1, 1, 0, 1);
SetProperty ("button.text_color_disabled", 1, 0.8, 0, 1);

CreateComp ("BUTTON", "TextButton");
SetProperty ("button.bm_idle", "!NONE");
SetProperty ("button.bm_over", "!NONE");
SetProperty ("button.bm_pressed", "!NONE");
SetProperty ("button.bm_disabled", "!NONE");
SetProperty ("button.text_offset", 0, 0);
SetProperty ("button.font", "fonts/small.mft");


CreateComp ("BUTTON", "AmuletButton");
SetProperty ("button.bm_idle", "board/powerup-slot.png");
SetProperty ("button.bm_over", "board/powerup-slot-hilight.png");
SetProperty ("button.bm_pressed", "board/powerup-slot.png");
SetProperty ("button.bm_disabled", "board/powerup-slot-off.png");
SetProperty ("button.text_offset", 0, 0);

CreateComp ("BUTTON", "AmuletButton1");
SetProperty ("button.bm_idle", "board/talisman1-slot-normal.png");
SetProperty ("button.bm_over", "board/talisman1-slot-overlay.png");
SetProperty ("button.bm_pressed", "board/talisman1-slot-normal.png");
SetProperty ("button.bm_disabled", "board/talisman1-slot-hilight.png");
SetProperty ("button.text_offset", 0, 0);

CreateComp ("BUTTON", "AmuletButton2");
SetProperty ("button.bm_idle", "board/talisman2-slot-normal.png");
SetProperty ("button.bm_over", "board/talisman2-slot-overlay.png");
SetProperty ("button.bm_pressed", "board/talisman2-slot-normal.png");
SetProperty ("button.bm_disabled", "board/talisman2-slot-hilight.png");
SetProperty ("button.text_offset", 0, 0);


CreateComp ("BUTTON", "Star");
SetProperty ("button.bm_idle", "ui/gfx/star-on.png");
SetProperty ("button.bm_over", "ui/gfx/star-on.png");
SetProperty ("button.bm_pressed", "ui/gfx/star-on.png");
SetProperty ("button.bm_disabled", "ui/gfx/star-off.png");
SetProperty ("button.text_offset", 0, 0);

CreateComp ("BUTTON", "TrophyButton");
SetProperty ("button.bm_idle", "board/powerup-slot.png");
SetProperty ("button.bm_over", "board/powerup-slot-hilight.png");
SetProperty ("button.bm_pressed", "board/powerup-slot.png");
SetProperty ("button.bm_disabled", "board/powerup-slot-off.png");
SetProperty ("button.text_offset", 0, 0);

CreateComp ("BUTTON", "TrophyButton1");
SetProperty ("button.bm_idle", "board/trophies/t1-slot.png");
SetProperty ("button.bm_over", "board/trophies/t1-slot-highlight.png");
SetProperty ("button.bm_pressed", "board/trophies/t1-slot.png");
SetProperty ("button.bm_disabled", "board/trophies/t1-slot.png");
SetProperty ("button.text_offset", 0, 0);

CreateComp ("BUTTON", "TrophyButton2");
SetProperty ("button.bm_idle", "board/trophies/t2-slot.png");
SetProperty ("button.bm_over", "board/trophies/t2-slot-highlight.png");
SetProperty ("button.bm_pressed", "board/trophies/t2-slot.png");
SetProperty ("button.bm_disabled", "board/trophies/t2-slot.png");
SetProperty ("button.text_offset", 0, 0);

CreateComp ("BUTTON", "TrophyButton3");
SetProperty ("button.bm_idle", "board/trophies/t3-slot.png");
SetProperty ("button.bm_over", "board/trophies/t3-slot-highlight.png");
SetProperty ("button.bm_pressed", "board/trophies/t3-slot.png");
SetProperty ("button.bm_disabled", "board/trophies/t3-slot.png");
SetProperty ("button.text_offset", 0, 0);


CreateComp ("BUTTON", "TrophyButton4");
SetProperty ("button.bm_idle", "board/trophies/t4-slot.png");
SetProperty ("button.bm_over", "board/trophies/t4-slot-highlight.png");
SetProperty ("button.bm_pressed", "board/trophies/t4-slot.png");
SetProperty ("button.bm_disabled", "board/trophies/t4-slot.png");
SetProperty ("button.text_offset", 0, 0);

CreateComp ("BUTTON", "TrophyButton5");
SetProperty ("button.bm_idle", "board/trophies/t5-slot.png");
SetProperty ("button.bm_over", "board/trophies/t5-slot-highlight.png");
SetProperty ("button.bm_pressed", "board/trophies/t5-slot.png");
SetProperty ("button.bm_disabled", "board/trophies/t5-slot.png");
SetProperty ("button.text_offset", 0, 0);

CreateComp ("BUTTON", "TrophyButton6");
SetProperty ("button.bm_idle", "board/trophies/t6-slot.png");
SetProperty ("button.bm_over", "board/trophies/t6-slot-highlight.png");
SetProperty ("button.bm_pressed", "board/trophies/t6-slot.png");
SetProperty ("button.bm_disabled", "board/trophies/t6-slot.png");
SetProperty ("button.text_offset", 0, 0);

CreateComp ("BUTTON", "TrophyButton7");
SetProperty ("button.bm_idle", "board/trophies/t7-slot.png");
SetProperty ("button.bm_over", "board/trophies/t7-slot-highlight.png");
SetProperty ("button.bm_pressed", "board/trophies/t7-slot.png");
SetProperty ("button.bm_disabled", "board/trophies/t7-slot.png");
SetProperty ("button.text_offset", 0, 0);