Are you, in fact, a pregnant lady who lives in the apartment next door to Superdeath's parents? - Commodore

Create an account  

 
Shendemiar questions

What is the difference between RuleSet and UIRuleSet?
Reply

Code:
public CreateSpecialAbilityForm()
        {
          
            InitializeComponent();
            LoadComboBox();
            theAbility = new SpecialAbility();
            theUIAbility = new UISpecialAbility();
        }
public CreateSpecialAbilityForm(SpecialAbility a, UISpecialAbility uia)
        {
            InitializeComponent();
            LoadComboBox();
            theAbility = a;
            theUIAbility = uia;

            namebox.Text = a.Name;
            if (uia.HasGraphics)
            {
                picbox.Text = uia.Picture.FileName + ":" + uia.Picture.picNumber;
            }
            if (theAbility.subsriptionDescriptions == null)
                theAbility.subsriptionDescriptions = new List<SubscriptionDescription>();
            subscriptions.Items.AddRange(theAbility.subsriptionDescriptions.ToArray());
            abilityTypeBox.SelectedIndex = (int)theAbility.AbilityType;
            displayNameBox.Text = theAbility.DisplayName;
        }

This is overload structure in C#?
Reply

The ruleset is used in the gamemechanics. UIruleset is only used in the UI. Basically, there is a dividing line between game mechanics and UI.
Reply

nope, thats just multiple ctors.
Reply

I finally have working system for adding and editing buttons and their help text through the gamestatechanger.

(My main problem was to realize that none of the UIxxx list do not get created in the code because it gets created automatically when loaded from disk. so I had to initialize it and populate it and save it and then remove the creator, as VM suspected)

What do I need to know before committing to SF (I have never used subversion before)
Reply

you need a sourceforge acc, that needs to be added to the developers group (I can do dthat if you tell me your accname)
then you need an svn client (I use tortoise svn)
then you need to UPDATE your local code
then you need to look at conflicts
then you need to COMMIT the code
Reply

Ok, so looking at conflicts and acting with good judgement accordingly. Got it. SourceForge account is shendemiar
Reply

Added you to developers. Welcome to the team!
Reply

(December 16th, 2013, 14:15)VM Wrote: Added you to developers. Welcome to the team!

Thanks!
Reply

I committed my first code! rev 190

The defaultUIRules.xml on my visual studio ends under /bin/Debug/xml so I copied the new xml including one UIButton to ../../xml folder for the commit.
Reply



Forum Jump: