Line 44:
Line 44:
</source>
</source>
β
If you have a class that is only relavent to the function you are in (e.g. a menu) you will want to declare the instance inside the function:
+
If you have a class that is only relevant to the function you are in (e.g. a menu) you will want to declare the instance inside the function:
<source lang = "cpp">
<source lang = "cpp">
Line 62:
Line 62:
}
}
</source>
</source>
β
β
== The GuiElement ==
== The GuiElement ==