aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_help.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-10 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-10 20:20:20 +0200
commitcd0fc6ff5daa6f59d542b9bfa15a8a48792c1d6e (patch)
tree06dcabb740969ecc63b4d06957144bbc9ebb4163 /src/i_help.go
parenti know very well it aint right but hey cut me some slack ok im doing myy best... (diff)
downloadhardflip-cd0fc6ff5daa6f59d542b9bfa15a8a48792c1d6e.tar.gz
hardflip-cd0fc6ff5daa6f59d542b9bfa15a8a48792c1d6e.tar.bz2
hardflip-cd0fc6ff5daa6f59d542b9bfa15a8a48792c1d6e.tar.xz
hardflip-cd0fc6ff5daa6f59d542b9bfa15a8a48792c1d6e.tar.zst
hardflip-cd0fc6ff5daa6f59d542b9bfa15a8a48792c1d6e.zip
new mode ok
Diffstat (limited to '')
-rw-r--r--src/i_help.go68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/i_help.go b/src/i_help.go
new file mode 100644
index 0000000..5c179fe
--- /dev/null
+++ b/src/i_help.go
@@ -0,0 +1,68 @@
+/*
+ * ========================
+ * ===== ===============
+ * ====== ================
+ * ====== ================
+ * ====== ==== ==== ==
+ * ====== === == = =
+ * ====== === = == =
+ * = === === = == ====
+ * = === === = == = =
+ * == ===== ==== ==
+ * ========================
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ * Copyright (c) 2023-2024, Joe
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. Neither the name of the organization nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ''AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * hardflip: src/i_help.go
+ * Fri May 10 15:40:13 2024
+ * Joe
+ *
+ * helping the user
+ */
+
+package main
+
+func i_draw_help(ui HardUI) {
+ if ui.dim[W] < 8 || ui.dim[H] < 4 {
+ return
+ }
+ win := Quad{
+ 4,
+ 4,
+ ui.dim[W] - 4,
+ ui.dim[H] - 4,
+ }
+ i_draw_box(ui.s,
+ win.L, win.T, win.R, win.B,
+ ui.style[BOX_STYLE], ui.style[HEAD_STYLE],
+ " Keys ", true)
+}