ObjectSettings PushButton::get_settings() { ObjectSettings result(_("Button")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Name"), &name)); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Script"), &script)); return result; }
ObjectSettings SnowParticleSystem::get_settings() { ObjectSettings result(_("Snow particles")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Name"), &name)); result.options.push_back( ObjectOption(MN_INTFIELD, _("Z-pos"), &z_pos)); return result; }
ObjectSettings Door::get_settings() { ObjectSettings result(_("Door")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Name"), &name)); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Sector"), &target_sector, "sector")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Spawn point"), &target_spawnpoint, "spawnpoint")); return result; }
ObjectSettings LevelTime::get_settings() { ObjectSettings result = GameObject::get_settings(); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Time"), &time_left, "time")); result.options.push_back( ObjectOption(MN_REMOVE, "", NULL)); return result; }
ObjectSettings Owl::get_settings() { ObjectSettings result(_("Owl")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Name"), &name)); result.options.push_back( dir_option(&dir) ); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Death script"), &dead_script)); return result; }
ObjectSettings BicyclePlatform::get_settings() { auto result = MovingSprite::get_settings(); result.options.push_back(ObjectOption(MN_NUMFIELD, _("Radius"), &radius, "radius")); result.options.push_back(ObjectOption(MN_NUMFIELD, _("Momentum change rate"), &momentum_change_rate, "momentum-change-rate")); return result; }
ObjectSettings LevelTime::get_settings() { ObjectSettings result(_("Level time")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Name"), &name)); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Time"), &time_left)); return result; }
ObjectSettings Yeti::get_settings() { ObjectSettings result = BadGuy::get_settings(); result.options.push_back( ObjectOption(MN_TEXTFIELD, "hud-icon", &hud_icon, "hud-icon", false)); result.options.push_back( ObjectOption(MN_TOGGLE, _("Fixed position"), &fixed_pos, "fixed-pos")); result.options.push_back( ObjectOption(MN_INTFIELD, _("Lives"), &hit_points, "lives")); return result; }
ObjectSettings Candle::get_settings() { ObjectSettings result = MovingSprite::get_settings(); result.options.push_back( ObjectOption(MN_TOGGLE, _("Burning"), &burning, "burning")); result.options.push_back( ObjectOption(MN_TOGGLE, _("Flicker"), &name, "flicker")); result.options.push_back( ObjectOption(MN_COLOR, _("Colour"), &lightcolor, "color")); return result; }
ObjectSettings Flame::get_settings() { ObjectSettings result = BadGuy::get_settings(); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Radius"), &radius, "radius")); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Speed"), &speed, "speed")); return result; }
ObjectSettings Thunderstorm::get_settings() { ObjectSettings result(_("Thunderstorm")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Name"), &name)); result.options.push_back( ObjectOption(MN_TOGGLE, _("Running"), &running)); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Interval"), &interval)); return result; }
ObjectSettings Candle::get_settings() { ObjectSettings result(_("Candle")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Name"), &name)); result.options.push_back( ObjectOption(MN_TOGGLE, _("Burning"), &burning)); result.options.push_back( ObjectOption(MN_TOGGLE, _("Flicker"), &name)); return result; }
ObjectSettings ParticleSystem::get_settings() { ObjectSettings result = GameObject::get_settings(); result.options.push_back( ObjectOption(MN_INTFIELD, _("Z-pos"), &z_pos, "z-pos")); result.options.push_back( ObjectOption(MN_REMOVE, "", nullptr)); return result; }
ObjectSettings PowerUp::get_settings() { ObjectSettings result = MovingSprite::get_settings(); result.options.push_back( ObjectOption(MN_SCRIPT, _("Script"), &script, "script")); result.options.push_back( ObjectOption(MN_TOGGLE, _("Disable gravity"), &no_physics, "disable-physics")); return result; }
ObjectSettings Thunderstorm::get_settings() { ObjectSettings result = GameObject::get_settings(); result.options.push_back( ObjectOption(MN_TOGGLE, _("Running"), &running, "running")); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Interval"), &interval, "interval")); result.options.push_back( ObjectOption(MN_REMOVE, "", NULL)); return result; }
ObjectSettings Climbable::get_settings() { new_size.x = bbox.get_width(); new_size.y = bbox.get_height(); ObjectSettings result(_("Climbable")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Name"), &name)); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Width"), &new_size.x, "width")); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Height"), &new_size.y, "height")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Message"), &message, "message")); return result; }
ObjectSettings Decal::get_settings() { ObjectSettings result = MovingObject::get_settings(); ObjectOption spr(MN_FILE, _("Sprite"), &sprite_name, "sprite"); spr.select.push_back(".png"); spr.select.push_back(".sprite"); result.options.push_back(spr); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Action"), &default_action, "action")); result.options.push_back( ObjectOption(MN_TOGGLE, _("Solid"), &solid, "solid")); return result; }
ObjectSettings ScriptTrigger::get_settings() { new_size.x = bbox.get_width(); new_size.y = bbox.get_height(); ObjectSettings result(_("Script trigger")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Name"), &name)); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Width"), &new_size.x, "width")); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Height"), &new_size.y, "height")); result.options.push_back( ObjectOption(MN_SCRIPT, _("Script"), &script, "script")); result.options.push_back( ObjectOption(MN_TOGGLE, _("Button"), &must_activate, "button")); return result; }
ObjectSettings ScriptedObject::get_settings() { new_size.x = bbox.get_width(); new_size.y = bbox.get_height(); ObjectSettings result = MovingSprite::get_settings(); result.options.push_back( ObjectOption(MN_NUMFIELD, "width", &new_size.x, "width", false)); result.options.push_back( ObjectOption(MN_NUMFIELD, "height", &new_size.y, "height", false)); result.options.push_back( ObjectOption(MN_TOGGLE, _("Solid"), &solid, "solid")); result.options.push_back( ObjectOption(MN_TOGGLE, _("Enabled physics"), &physic_enabled, "physic-enabled")); result.options.push_back( ObjectOption(MN_TOGGLE, _("Visible"), &visible, "visible")); return result; }
ObjectSettings Spotlight::get_settings() { ObjectSettings result(_("Spotlight")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Name"), &name)); return result; }
ObjectSettings MagicBlock::get_settings() { ObjectSettings result = MovingSprite::get_settings(); result.options.push_back( ObjectOption(MN_COLOR, _("Colour"), &color, "color")); return result; }
ObjectSettings Lantern::get_settings() { ObjectSettings result = Rock::get_settings(); result.options.push_back( ObjectOption(MN_COLOR, _("Colour"), &lightcolor, "color")); return result; }
ObjectSettings Trampoline::get_settings() { ObjectSettings result = Rock::get_settings(); result.options.push_back( ObjectOption(MN_TOGGLE, _("Portable"), &portable, "portable")); return result; }
ObjectSettings MagicBlock::get_settings() { ObjectSettings result(_("Magic block")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Name"), &name)); return result; }
ObjectSettings UnstableTile::get_settings() { ObjectSettings result(_("Unstable tile")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Name"), &name)); return result; }
ObjectSettings HeavyCoin::get_settings() { auto result = MovingSprite::get_settings(); result.options.push_back( ObjectOption(MN_SCRIPT, _("Collect script"), &collect_script, "collect-script")); return result; }
ObjectSettings AmbientSound::get_settings() { new_size.x = bbox.get_width(); new_size.y = bbox.get_height(); ObjectSettings result = MovingObject::get_settings(); ObjectOption smp(MN_FILE, _("Sound"), &sample, "sample"); smp.select.push_back(".wav"); smp.select.push_back(".ogg"); result.options.push_back(smp); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Width"), &new_size.x, "width")); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Height"), &new_size.y, "height")); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Distance factor"), &distance_factor, "distance_factor")); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Distance bias"), &distance_bias, "distance_bias")); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Volume"), &maximumvolume, "volume")); return result; }
ObjectSettings Coin::get_settings() { ObjectSettings result = MovingSprite::get_settings(); add_path = walker.get() && path->is_valid(); result.options.push_back( ObjectOption(MN_TOGGLE, _("Following path"), &add_path)); if (walker.get() && path->is_valid()) { result.options.push_back( Path::get_mode_option(&path->mode) ); } result.options.push_back( ObjectOption(MN_SCRIPT, _("Collect script"), &collect_script, "collect-script")); return result; }
ObjectSettings PushButton::get_settings() { ObjectSettings result = MovingSprite::get_settings(); result.options.push_back( ObjectOption(MN_SCRIPT, _("Script"), &script, "script")); return result; }
ObjectSettings SequenceTrigger::get_settings() { new_size.x = bbox.get_width(); new_size.y = bbox.get_height(); ObjectSettings result(_("Sequence trigger")); result.options.push_back( ObjectOption(MN_TEXTFIELD, _("Name"), &name)); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Width"), &new_size.x, "width")); result.options.push_back( ObjectOption(MN_NUMFIELD, _("Height"), &new_size.y, "height")); ObjectOption seq(MN_STRINGSELECT, _("Sequence"), &sequence); seq.select.push_back(_("end sequence")); seq.select.push_back(_("stop Tux")); seq.select.push_back(_("fireworks")); result.options.push_back( seq ); return result; }