Exemple #1
0
        public override void DoSettingsWindowContents(Rect inRect)
        {
            var rect = inRect.GetHGrid(1f, -1f, 400f, -1f)[2];

            var listing = new Listing_Standard();

            listing.Begin(rect);

            if (Registry.IsActive)
            {
                if (listing.ButtonText(Lang.Get("Button.RemoveMod"), Lang.Get("Button.RemoveModDesc")))
                {
                    Dialog_Alert.Open(Lang.Get("Button.RemoveModConfirm"), Dialog_Alert.Buttons.YesNo, Registry.DeactivateMod);
                }
            }
            else
            {
                listing.Label(Lang.Get("Settings.NoGame"));
            }

            listing.End();
        }
Exemple #2
0
 private static void RequiredReset()
 {
     Dialog_Alert.Open(Lang.Get("Alert.InvalidLayout"));
     HudLayout.LoadDefaultAndSave();
 }