1 using Microsoft.Xna.Framework;
7 public static Color
BackgroundColor = GameSettings.CurrentConfig.SubEditorBackground;
17 Hull.EditFire =
false;
27 var msgBox =
new GUIMessageBox(TextManager.Get(
"CharacterEditor.EditBackgroundColor"),
"",
new[] { TextManager.Get(
"Reset"), TextManager.Get(
"OK")},
new Vector2(0.2f, 0.175f), minSize:
new Point(300, 175));
33 for (
int i = 0; i < 3; i++)
35 var colorContainer =
new GUILayoutGroup(
new RectTransform(
new Vector2(0.33f, 1), rgbLayout.RectTransform), isHorizontal:
true) { Stretch =
true };
36 new GUITextBlock(
new RectTransform(
new Vector2(0.2f, 1), colorContainer.RectTransform,
Anchor.CenterLeft) { MinSize = new Point(15, 0) }, GUI.ColorComponentLabels[i], font: GUIStyle.SmallFont, textAlignment: Alignment.Center);
37 layoutParents[i] = colorContainer;
45 rInput.MinValueInt = gInput.MinValueInt = bInput.MinValueInt = 0;
46 rInput.MaxValueInt = gInput.MaxValueInt = bInput.MaxValueInt = 255;
48 rInput.OnValueChanged = gInput.OnValueChanged = bInput.OnValueChanged = delegate
50 var color =
new Color(rInput.IntValue, gInput.IntValue, bInput.IntValue);
52 var config = GameSettings.CurrentConfig;
53 config.SubEditorBackground = color;
54 GameSettings.SetCurrentConfig(config);
58 msgBox.Buttons[0].OnClicked = (button, o) =>
67 msgBox.Buttons[1].OnClicked = (button, o) =>
70 GameSettings.SaveCurrentConfig();
static Color BackgroundColor
virtual void DeselectEditorSpecific()
override sealed void Deselect()
void CreateBackgroundColorPicker()
static Lights.LightManager LightManager
static bool DisableCrewAI