| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | player: Add missing headerHEADmaster | Xavier Del Campo Romero | 2024-01-30 | 2 | -0/+2 |
| | | | | | As required by rand(3). | ||||
| * | human_player_gui.c: Rename on_exit to on_btn_exit | Xavier Del Campo Romero | 2024-01-30 | 1 | -2/+2 |
| | | | | | | Surprisingly, glibc declares on_exit(3) as a non-portable function on stdlib.h. | ||||
| * | init.c: Add missing #include | Xavier Del Campo Romero | 2024-01-30 | 1 | -0/+1 |
| | | | | | As required by PRIx8. | ||||
| * | Big rushed update | Xavier Del Campo Romero | 2024-01-28 | 30 | -353/+853 |
| | | |||||
| * | Add unit sprites | Xavier Del Campo Romero | 2024-01-28 | 3 | -9/+46 |
| | | |||||
| * | terrain: Split tile/object rendering | Xavier Del Campo Romero | 2024-01-28 | 5 | -93/+213 |
| | | |||||
| * | Add btn_small | Xavier Del Campo Romero | 2024-01-27 | 5 | -6/+34 |
| | | |||||
| * | Remove stale unit and building types | Xavier Del Campo Romero | 2024-01-27 | 5 | -69/+10 |
| | | |||||
| * | Define terrain rendering and loading | Xavier Del Campo Romero | 2024-01-27 | 12 | -150/+412 |
| | | |||||
| * | gfx: Add return value to *_sort functions | Xavier Del Campo Romero | 2024-01-27 | 14 | -33/+117 |
| | | |||||
| * | Replace "unsigned int" with "unsigned" | Xavier Del Campo Romero | 2024-01-27 | 6 | -7/+7 |
| | | |||||
| * | Remove hp | Xavier Del Campo Romero | 2024-01-27 | 8 | -88/+4 |
| | | |||||
| * | system: Adjust caption according to PROJECT_NAME | Xavier Del Campo Romero | 2024-01-27 | 2 | -1/+3 |
| | | |||||
| * | container.c: Add minor fixes | Xavier Del Campo Romero | 2024-01-27 | 1 | -12/+13 |
| | | |||||
| * | Add resources | Xavier Del Campo Romero | 2024-01-27 | 1 | -3/+0 |
| | | |||||
| * | Remove resource, tech and old game resources | Xavier Del Campo Romero | 2024-01-27 | 21 | -1343/+98 |
| | | |||||
| * | Rename project | Xavier Del Campo Romero | 2024-01-26 | 1 | -1/+1 |
| | | |||||
| * | Avoid memory leak on failed realloc(3) | Xavier Del Campo Romero | 2023-04-30 | 5 | -10/+34 |
| | | |||||
| * | wip3 | Xavier Del Campo Romero | 2023-04-07 | 3 | -32/+48 |
| | | |||||
| * | wip2 | Xavier Del Campo Romero | 2022-12-08 | 15 | -59/+185 |
| | | |||||
| * | Add tests for transport | Xavier Del Campo Romero | 2022-11-11 | 3 | -0/+221 |
| | | |||||
| * | WIP | Xavier Del Campo Romero | 2022-11-01 | 80 | -770/+5138 |
| | | |||||
| * | unit.h: remove unused constant MAX_UNIT_DIRECTIONS | Xavier Del Campo Romero | 2022-09-26 | 1 | -3/+1 |
| | | |||||
| * | gui/line_edit: Allow setting input filters | Xavier Del Campo Romero | 2022-09-26 | 2 | -1/+23 |
| | | |||||
| * | Swap U offset for idle/pressed cursor sprites | Xavier Del Campo Romero | 2022-09-26 | 1 | -1/+1 |
| | | | | | | Since the cursor is mostly idle, it makes sense to set its sprite as the default. | ||||
| * | net: Relocate source files for consistency | Xavier Del Campo Romero | 2022-09-24 | 4 | -3/+3 |
| | | |||||
| * | net.h: Add missing extern "C" | Xavier Del Campo Romero | 2022-09-23 | 1 | -0/+9 |
| | | |||||
| * | input.c: do not fail on input_render | Xavier Del Campo Romero | 2022-09-23 | 1 | -2/+2 |
| | | | | | | Implementation is still incomplete, and should not crash the application. | ||||
| * | join_menu.c: Update serial/IPv4 GUI menus | Xavier Del Campo Romero | 2022-09-23 | 1 | -24/+119 |
| | | |||||
| * | ps1/net.c: return 0 on net_init | Xavier Del Campo Romero | 2022-09-23 | 1 | -1/+1 |
| | | | | | | Even if the implementation is not finished yet, this will avoid the program from crashing on startup. | ||||
| * | net: Implement net_available | Xavier Del Campo Romero | 2022-09-23 | 3 | -1/+13 |
| | | |||||
| * | net: Implement net_serial_devices | Xavier Del Campo Romero | 2022-09-23 | 4 | -0/+40 |
| | | | | | | This function provides a platform-specific list of serial devices that can be accessed. | ||||
| * | keyboard: Add KEYBOARD_KEY_SLASH | Xavier Del Campo Romero | 2022-09-23 | 3 | -2/+6 |
| | | |||||
| * | label.c: Set empty text by default | Xavier Del Campo Romero | 2022-09-23 | 1 | -1/+3 |
| | | | | | | This will avoid crashing the application on rendering due to uninitialized labels. | ||||
| * | gui.c: Remove unneeded condition | Xavier Del Campo Romero | 2022-09-23 | 1 | -3/+1 |
| | | | | | | Even if neither hcentered or vcentered are used, GUI element position must be determined by that of its parents. | ||||
| * | gui.c: Fix minor const-correctness issues | Xavier Del Campo Romero | 2022-09-23 | 1 | -2/+2 |
| | | |||||
| * | gui: Allow elements to be hidden | Xavier Del Campo Romero | 2022-09-23 | 3 | -18/+32 |
| | | | | | | | When a GUI element is hidden, no rendering or updating is done to it or its children. This can be useful to define a complex GUI tree structure that changes under specific conditions, without redefining it. | ||||
| * | gfx: Provide functions for fullscreen handling | Xavier Del Campo Romero | 2022-09-23 | 3 | -0/+22 |
| | | |||||
| * | Implement checkbox GUI element | Xavier Del Campo Romero | 2022-09-23 | 4 | -0/+116 |
| | | |||||
| * | net: Group events into struct | Xavier Del Campo Romero | 2022-09-21 | 3 | -16/+21 |
| | | |||||
| * | gui: fix wrong logic on update/render/deinit | Xavier Del Campo Romero | 2022-09-21 | 1 | -11/+15 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The older implementation caused some elements to be update/rendered/deinitialized more than once per call. For example, considering the following tree of GUI elements: A B C D E The older implementation would update/render/deinitialize C and E more than once, as shown below: Update A Update B Update C Update D Update E Update C This was because a GUI element was acting on its siblings, but the siblings would also act on theirs, causing the extra calls. OTOH, as an additional improvement, no nested call is now required for siblings. | ||||
| * | menu: Implement join_menu | Xavier Del Campo Romero | 2022-09-20 | 9 | -5/+342 |
| | | |||||
| * | Implement GUI line edit | Xavier Del Campo Romero | 2022-09-20 | 4 | -0/+271 |
| | | |||||
| * | gui: Implement gui_deinit | Xavier Del Campo Romero | 2022-09-20 | 2 | -0/+14 |
| | | |||||
| * | Implement net component | Xavier Del Campo Romero | 2022-09-20 | 10 | -0/+555 |
| | | |||||
| * | Remap calls to pad/mouse/keyboard to input | Xavier Del Campo Romero | 2022-09-20 | 22 | -94/+195 |
| | | |||||
| * | Implement input component | Xavier Del Campo Romero | 2022-09-20 | 4 | -0/+237 |
| | | | | | | | | | | | | | | | | | It is required to redirect keyboard input (both physical or not) when a GUI line edit is focused. This means other components cannot be activated on key presses. Therefore, this new component is meant as a higher-level abstraction compared to the `keyboard`/`pad`/`mouse` components, which: - Implements the same APIs provided by `keyboard`, `mouse` and `pad`. - Returns the same results as the APIs above if no GUI element is focused, no input otherwise. Note: replacing calls to `keyboard`/`pad`/`mouse` with `input` will be implemented in a future commit. | ||||
| * | keyboard: Add new public functions | Xavier Del Campo Romero | 2022-09-20 | 2 | -0/+83 |
| | | | | | These will be used by future commits. | ||||
| * | Minor code style fixes | Xavier Del Campo Romero | 2022-09-20 | 2 | -3/+1 |
| | | |||||
| * | sdl-1.2: Remap missing keyboard keys | Xavier Del Campo Romero | 2022-09-20 | 1 | -2/+49 |
| | | |||||
