示例#1
0
    private void Signal_UpdateKeyPlatformEdited(int idx)
    {
        var optionButton = MainEditingArea.GetChild(0).GetNode <OptionButton>("Platform/OptionButton");
        var str          = optionButton.GetItemText(idx);

        var updateKey = updateKeys[activeUpdateKey];

        activeUpdateKey.SetText(0, $"{str}:{updateKey.Id}");
        updateKey.Platform = str;
    }
示例#2
0
 private void ClearMainEditingArea()
 {
     for (int i = 0; i < MainEditingArea.GetChildCount(); ++i)
     {
         var child = MainEditingArea.GetChild(i);
         if (child.HasMeta(Meta.CorrespondingController))
         {
             var controller = ContentPackController.GetControllerForMod((string)child.GetMeta(Meta.CorrespondingController));
             var data       = ModProject.Mods.Find(md => md.ContentPackFor == controller.ModUniqueId);
             controller.OnEditingAreaChanged(this, data, child);
         }
         child.QueueFree();
     }
 }