ControllerPropertiesDialog

Package: Libraries.Interface.Controls.Scenes.Dialogs · Inherits from: Libraries.Interface.Events.TextChangeListener, Libraries.Interface.Controls.Control, Libraries.Interface.Forms.FormPrimitiveContainer, Libraries.Interface.Item, Libraries.Interface.Controls.Scenes.Dialogs.PropertiesDialog, Libraries.Interface.Item2D, Libraries.Language.Object, Libraries.Interface.Events.SelectionListener, Libraries.Interface.Controls.Dialog

The ControllerPropertiesDialog is a model's Controller section: whether the model drives as a car in a game (Vehicle) or not (None), and, for a vehicle, every setting, with sliders: - Model: which of its own sides the model's front faces, where its origin sits from the physics body's middle, and Fit to model, which sets the body and wheels from the model's shape; - Body: mass, the physics box's size, friction and damping; - Wheels: where the axles are, how far out and how high, their radius, and which wheels the engine turns; - Suspension: the springs and how the tires grip; - Driving: engine, reverse and brake forces, steering, and how quickly steering and throttle change; - Camera: whether the game's camera follows the car, and from where. The model's file never changes: the settings are kept in the scene's Controller block. While it shows, the vehicle's guides are drawn over the model (VehicleGuides). Every change is one step to undo. It shows in the scene editor's Properties panel when a model is selected.

Variables

  • integer FIT_TO_MODEL
  • integer CAMERA_FOLLOWS: scale, so the fields line up.

Actions

ButtonActivated(integer kind)

This action is called by Fit to model and the Camera follows this checkbox.

Parameters

  • kind integer: FIT_TO_MODEL or CAMERA_FOLLOWS

FocusField()

Moves the focus to the controller choice.

Refresh()

Shows the model's controller again, after it changed.

SelectionChanged(Libraries.Interface.Events.SelectionEvent event)

This action shows the section when a model is selected, and hides it otherwise. It also hears the section's choices.

Parameters

SetFields(Libraries.Interface.Controls.Scenes.Items.EditorItem item)

This action sets the fields from a selected model's highlight.

Parameters

SetModel(Libraries.Interface.Controls.Scenes.Items.EditorModel model)

This action shows a model's controller, and draws its guides.

Parameters

SliderTaken(Libraries.Interface.Controls.TextField field)

This action is called when a slider's value was finally changed, or a number typed in its field. Text that isn't a number is ignored.

Parameters

Inherited Actions

263 actions from Libraries.Interface.Controls.Control
20 actions from Libraries.Interface.Controls.Dialog
34 actions from Libraries.Interface.Controls.Scenes.Dialogs.PropertiesDialog
1 action from Libraries.Interface.Events.TextChangeListener
8 actions from Libraries.Interface.Forms.FormPrimitiveContainer
57 actions from Libraries.Interface.Item
200 actions from Libraries.Interface.Item2D
3 actions from Libraries.Language.Object