// Singu Note: We use changeDefault instead of setting these in onOpen LLFloaterSearch::_Params::_Params() { changeDefault(trusted_content, true); changeDefault(allow_address_entry, false); changeDefault(window_class, "search"); // Don't include this in the count with "web_content" changeDefault(id, "search"); // Don't include this in the count with "web_content" }
Params() : panel("panel"), group_id("group_id") { changeDefault(mouse_opaque, false); changeDefault(follows.flags, FOLLOWS_ALL); }
LLAvatarIconCtrl::Params::Params() : avatar_id("avatar_id"), draw_tooltip("draw_tooltip", true), default_icon_name("default_icon_name"), symbol_hpad("symbol_hpad"), symbol_vpad("symbol_vpad"), symbol_size("symbol_size", 1), symbol_pos("symbol_pos", LLAvatarIconCtrlEnums::BOTTOM_RIGHT) { changeDefault(min_width, 32); changeDefault(min_height, 32); }
LLAccordionCtrlTab::Params::Params() : title("title") ,display_children("expanded", true) ,header_height("header_height", HEADER_HEIGHT), min_width("min_width", 0), min_height("min_height", 0) ,collapsible("collapsible", true) ,header_bg_color("header_bg_color") ,dropdown_bg_color("dropdown_bg_color") ,header_visible("header_visible",true) ,padding_left("padding_left",2) ,padding_right("padding_right",2) ,padding_top("padding_top",2) ,padding_bottom("padding_bottom",2) ,header_expand_img("header_expand_img") ,header_expand_img_pressed("header_expand_img_pressed") ,header_collapse_img("header_collapse_img") ,header_collapse_img_pressed("header_collapse_img_pressed") ,header_image("header_image") ,header_image_over("header_image_over") ,header_image_pressed("header_image_pressed") ,header_image_focused("header_image_focused") ,header_text_color("header_text_color") ,fit_panel("fit_panel",true) ,selection_enabled("selection_enabled", false) { changeDefault(mouse_opaque, false); }
LLButton::Params::Params() : label_selected("label_selected"), // requires is_toggle true label_shadow("label_shadow", true), auto_resize("auto_resize", false), use_ellipses("use_ellipses", false), image_unselected("image_unselected"), image_selected("image_selected"), image_hover_selected("image_hover_selected"), image_hover_unselected("image_hover_unselected"), image_disabled_selected("image_disabled_selected"), image_disabled("image_disabled"), image_pressed("image_pressed"), image_pressed_selected("image_pressed_selected"), image_overlay("image_overlay"), image_overlay_alignment("image_overlay_alignment", std::string("center")), image_top_pad("image_top_pad"), image_bottom_pad("image_bottom_pad"), imgoverlay_label_space("imgoverlay_label_space", 1), label_color("label_color"), label_color_selected("label_color_selected"), // requires is_toggle true label_color_disabled("label_color_disabled"), label_color_disabled_selected("label_color_disabled_selected"), image_color("image_color"), image_color_disabled("image_color_disabled"), image_overlay_color("image_overlay_color", LLColor4::white % 0.75f), image_overlay_disabled_color("image_overlay_disabled_color", LLColor4::white % 0.3f), image_overlay_selected_color("image_overlay_selected_color", LLColor4::white), flash_color("flash_color"), pad_right("pad_right", LLUI::sSettingGroups["config"]->getS32("ButtonHPad")), pad_left("pad_left", LLUI::sSettingGroups["config"]->getS32("ButtonHPad")), pad_bottom("pad_bottom"), click_callback("click_callback"), mouse_down_callback("mouse_down_callback"), mouse_up_callback("mouse_up_callback"), mouse_held_callback("mouse_held_callback"), is_toggle("is_toggle", false), scale_image("scale_image", true), hover_glow_amount("hover_glow_amount"), commit_on_return("commit_on_return", true), display_pressed_state("display_pressed_state", true), use_draw_context_alpha("use_draw_context_alpha", true), badge("badge"), handle_right_mouse("handle_right_mouse"), held_down_delay("held_down_delay"), button_flash_enable("button_flash_enable", false), button_flash_count("button_flash_count"), // <FS:Zi> Add checkbox control toggle //button_flash_rate("button_flash_rate") button_flash_rate("button_flash_rate"), checkbox_control("checkbox_control") // </FS:Zi> { addSynonym(is_toggle, "toggle"); changeDefault(initial_value, LLSD(false)); }
LLSideTrayPanelContainer::Params::Params() : default_panel_name("default_panel_name") { // Always hide tabs. changeDefault(hide_tabs, true); }
Params() { changeDefault(show_reset, false); // We have a button for this }
Params() : texture_view("texture_view") { changeDefault(mouse_opaque, false); }
Params() : texture_view("texture_view") { S32 line_height = LLFontGL::getFontMonospace()->getLineHeight(); changeDefault(rect, LLRect(0,0,100,line_height * 4)); }