xXJDrocks450Xx
Well-Known Member
Important Source Code Update, Level Creator Only:
- 2 new and very important classes added, NLCheckbox.cs (the name is great, trust me), and NL_ListControl: The first of which has all the functionality of the current check boxes for selecting whether the level object is a platform, prop, or hazard, except much easier to use and neater (code wise). For example, the new check boxes (NLCheckbox.cs) can be placed in the designer, but then when needed -in the code- it just needs Init() -pass in data needed for use- and SetOptions() -select an enum value of when you want it to do- to be called. It will save its checked or unchecked state silently within the Level File (NLFile) under whatever node you want. As for NL_ListControl, it's basically the same except it allows forms to be shown when a certain item is pressed and so on. Basically it's a lot easier to make options now.
- Another new class added that makes options within NL_ListControl possible. It is a very simple class, however it will be extended to make options for programmers to use it in the future. Simply call a method for whatever data you need to store within it, and pass it in when SetOptions() is called. For example, there is a method called StoreData_List_ShowForm(Form FormtoShow, int ItemIndex); It stores data for showing a form when an item is called. Item index is the index of the item that when selected will show "FormtoShow", if that makes sense . Basically, don't worry about it.
- Both of these additions aren't groundbreaking achievements, but this post is just to keep you updated.