@@ -46,14 +46,14 @@ Modify the MainView
4646~~~~~~~~~~~~~~~~~~~~
4747
4848We are going to add a button to change the view. For drawing a button we would
49- need a `` UIManager ` `.
49+ need an :py:class: ` ~arcade.gui. UIManager `.
5050
5151.. literalinclude :: menu_02.py
5252 :caption: Initialising the Manager
5353 :lines: 19-22
5454 :emphasize-lines: 3
5555
56- After initialising the manager we need to enable it when the view is shown and
56+ After initializing the manager we need to enable it when the view is shown and
5757disable it when the view is hidden.
5858
5959.. literalinclude :: menu_02.py
@@ -74,12 +74,12 @@ We also need to draw the children of the menu in ``on_draw``.
7474 :emphasize-lines: 7
7575
7676Now we have successfully setup the manager, we can now add a button to the view.
77- We are using `` UIAnchorLayout ` ` to position the button. We also setup a function
77+ We are using :py:class: ` ~arcade.gui. UIAnchorLayout ` to position the button. We also setup a function
7878which is called when the button is clicked.
7979
8080 .. literalinclude :: menu_02.py
8181 :pyobject: MainView.__init__
82- :caption: Initialising the Button
82+ :caption: Initializing the Button
8383 :emphasize-lines: 8-12
8484
8585Initialise the Menu View
@@ -123,7 +123,7 @@ First we setup buttons for resume, starting a new game, volume, options and exit
123123Displaying the Buttons in a Grid
124124~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
125125
126- After setting up the buttons we add them to `` UIGridLayout ` `, so that they can
126+ After setting up the buttons we add them to :py:class: ` ~arcade.gui. UIGridLayout `, so that they can
127127displayed in a grid like manner.
128128
129129.. literalinclude :: menu_03.py
@@ -167,7 +167,7 @@ Adding ``on_click`` Callback for Volume and Options
167167~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
168168
169169Now we need to implement an actual menu for volume and options, for that we have
170- to make a class that acts like a window. Using `` UIMouseFilterMixin ` ` we catch
170+ to make a class that acts like a window. Using :py:class: ` ~arcade.gui. UIMouseFilterMixin ` we catch
171171all the events happening for the parent and respond nothing to them. Thus
172172making it act like a window/view.
173173
@@ -221,7 +221,7 @@ Now you might be getting a little idea why we have edited the parameters but
221221Adding a Title label
222222--------------------
223223
224- We will be adding a `` UILabel `` that explains the menu. `` UISpace ` ` is a widget
224+ We will be adding a :py:class: ` ~arcade.gui. UILabel ` that explains the menu. :py:class: ` ~arcade.gui. UISpace ` is a widget
225225that can be used to add space around some widget, you can set its color to the
226226background color so it appears invisible.
227227
@@ -236,10 +236,10 @@ Adding it to the widget layout.
236236 :lines: 238-239
237237
238238
239- Adding a Input Field
239+ Adding an Input Field
240240~~~~~~~~~~~~~~~~~~~~~
241241
242- We will use `` UIInputText `` to add an input field. The `` with_border() ` `
242+ We will use :py:class: ` ~arcade.gui. UIInputText ` to add an input field. The :py:meth: ` ~arcade.gui.UIWidget. with_border `
243243function creates a border around the widget with color(default argument is
244244black) black and thickness(default argument is 2px) 2px. Add this just below
245245the title label.
@@ -263,7 +263,7 @@ in the last also for those of you who are skipping through this section :P.
263263Adding a Toggle Button
264264~~~~~~~~~~~~~~~~~~~~~~
265265
266- Don't go on the section title much, in Arcade the `` UITextureToggle ` ` is not
266+ Don't go on the section title much, in Arcade the :py:class: ` ~arcade.gui. UITextureToggle ` is not
267267really a button it switches between two textures when clicked. Yes, it
268268functions like a button but by "is not really a button" we meant that it
269269doesn't inherits the button class. We also pair it up horizontally with the
@@ -283,7 +283,7 @@ field.
283283Adding a Dropdown
284284~~~~~~~~~~~~~~~~~
285285
286- We add a dropdown by using `` UIDropdown ` `.
286+ We add a dropdown by using :py:class: ` ~arcade.gui. UIDropdown `.
287287
288288.. literalinclude :: menu_05.py
289289 :caption: Adding dropdown
@@ -298,9 +298,9 @@ Adding it to the widget layout.
298298Adding a Slider
299299~~~~~~~~~~~~~~~
300300
301- The final widget. In Arcade you can use `` UISlider ` ` to implement a slider.
301+ The final widget. In Arcade you can use :py:class: ` ~arcade.gui. UISlider ` to implement a slider.
302302Theres a functionality to style the slider, this is also present for
303- `` UIFlatButton `` and `` UITextureButton ` `.
303+ :py:class: ` ~arcade.gui. UIFlatButton ` and :py:class: ` ~arcade.gui. UITextureButton `.
304304
305305.. literalinclude :: menu_05.py
306306 :caption: Adding slider
0 commit comments