Daniele Bartolini 10 lat temu
rodzic
commit
04e4763803
2 zmienionych plików z 24 dodań i 12 usunięć
  1. 11 11
      docs/lua_api.txt
  2. 13 1
      docs/style.css

+ 11 - 11
docs/lua_api.txt

@@ -793,7 +793,7 @@ Keyboard
 Keyboard Button Names
 ~~~~~~~~~~~~~~~~~~~~~
 
-	tab, enter, escape, space, backspace, kp_0, kp_1, kp_2, kp_3, kp_4, kp_5, kp_6, kp_7, kp_8, kp_9, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, home, left, up, right, down, page_up, page_down, lcontrol, rcontrol, lshift, rshift, caps_lock, lalt, ralt, lsuper, rsuper, num_0, num_1, num_2, num_3, num_4, num_5, num_6, num_7, num_8, num_9, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z
+	``tab``, ``enter``, ``escape``, ``space``, ``backspace``, ``kp_0``, ``kp_1``, ``kp_2``, ``kp_3``, ``kp_4``, ``kp_5``, ``kp_6``, ``kp_7``, ``kp_8``, ``kp_9``, ``f1``, ``f2``, ``f3``, ``f4``, ``f5``, ``f6``, ``f7``, ``f8``, ``f9``, ``f10``, ``f11``, ``f12``, ``home``, ``left``, ``up``, ``right``, ``down``, ``page_up``, ``page_down``, ``lcontrol``, ``rcontrol``, ``lshift``, ``rshift``, ``caps_lock``, ``lalt``, ``ralt``, ``lsuper``, ``rsuper``, ``num_0``, ``num_1``, ``num_2``, ``num_3``, ``num_4``, ``num_5``, ``num_6``, ``num_7``, ``num_8``, ``num_9``, ``a``, ``b``, ``c``, ``d``, ``e``, ``f``, ``g``, ``h``, ``i``, ``j``, ``k``, ``l``, ``m``, ``n``, ``o``, ``p``, ``q``, ``r``, ``s``, ``t``, ``u``, ``v``, ``w``, ``x``, ``y``, ``z``
 
 Mouse
 -----
@@ -836,14 +836,14 @@ Mouse
 Mouse Button Names
 ~~~~~~~~~~~~~~~~~~
 
-	left, middle, right, extra_1, extra_2
+	``left``, ``middle``, ``right``, ``extra_1``, ``extra_2``
 
 Mouse Axis Names
 ~~~~~~~~~~~~~~~~
 
-	* cursor: Returns the cursor position (x, y) in screen coordinates.
-	* cursor_delta: Returns the delta of the cursor position (x, y) since last frame.
-	* wheel: Returns the movement of the mouse wheel in the y axis. Positive values of y mean upward scrolling, negative values mean downward scrolling.
+	* ``cursor``: Returns the cursor position (x, y) in screen coordinates.
+	* ``cursor_delta``: Returns the delta of the cursor position (x, y) since last frame.
+	* ``wheel``: Returns the movement of the mouse wheel in the y axis. Positive values of y mean upward scrolling, negative values mean downward scrolling.
 
 Touch
 -----
@@ -917,16 +917,16 @@ Pad1, Pad2, Pad3, Pad4
 Pad Button Names
 ~~~~~~~~~~~~~~~~
 
-	* up, down, left, right
-	* start, back, guide
-	* left_thumb, right_thumb
-	* left_shoulder, right_shoulder
-	* a, b, x, y
+	* ``up``, ``down``, ``left``, ``right``
+	* ``start``, ``back``, ``guide``
+	* ``left_thumb``, ``right_thumb``
+	* ``left_shoulder``, ``right_shoulder``
+	* ``a``, ``b``, ``x``, ``y``
 
 Pad Axis Names
 ~~~~~~~~~~~~~~
 
-	* left, right: Returns the direction (x, y) of the left or right thumbstick [-1; +1]. The z component represents the left or right trigger [0; +1].
+	* ``left``, ``right``: Returns the direction (x, y) of the left or right thumbstick [-1; +1]. The z component represents the left or right trigger [0; +1].
 
 Window
 ======

+ 13 - 1
docs/style.css

@@ -5,11 +5,23 @@
 
 @import url(html4css1.css);
 
-* {
+.document {
 	font-family: sans-serif;
+	font-size: 11pt;
+	line-height: 145%;
+	color: #141414;
 }
 
 div.topic {
 	border: 1px solid #aaa;
 	background-color: #f9f9f9;
 }
+
+tt.literal {
+	background-color: #fafafa;
+	border-radius: 2px;
+	border-width: 1px;
+	border-style: solid;
+	border-color: #e7e7e7;
+	padding: 1px 7px 1px 7px;
+}