aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* player: Add missing headerHEADmasterXavier Del Campo Romero2024-01-302-0/+2
| | | | As required by rand(3).
* human_player_gui.c: Rename on_exit to on_btn_exitXavier Del Campo Romero2024-01-301-2/+2
| | | | | Surprisingly, glibc declares on_exit(3) as a non-portable function on stdlib.h.
* init.c: Add missing #includeXavier Del Campo Romero2024-01-301-0/+1
| | | | As required by PRIx8.
* Big rushed updateXavier Del Campo Romero2024-01-2830-353/+853
|
* Add unit spritesXavier Del Campo Romero2024-01-283-9/+46
|
* terrain: Split tile/object renderingXavier Del Campo Romero2024-01-285-93/+213
|
* Add btn_smallXavier Del Campo Romero2024-01-275-6/+34
|
* Remove stale unit and building typesXavier Del Campo Romero2024-01-275-69/+10
|
* Define terrain rendering and loadingXavier Del Campo Romero2024-01-2712-150/+412
|
* gfx: Add return value to *_sort functionsXavier Del Campo Romero2024-01-2714-33/+117
|
* Replace "unsigned int" with "unsigned"Xavier Del Campo Romero2024-01-276-7/+7
|
* Remove hpXavier Del Campo Romero2024-01-278-88/+4
|
* system: Adjust caption according to PROJECT_NAMEXavier Del Campo Romero2024-01-272-1/+3
|
* container.c: Add minor fixesXavier Del Campo Romero2024-01-271-12/+13
|
* Add resourcesXavier Del Campo Romero2024-01-271-3/+0
|
* Remove resource, tech and old game resourcesXavier Del Campo Romero2024-01-2721-1343/+98
|
* Rename projectXavier Del Campo Romero2024-01-261-1/+1
|
* Avoid memory leak on failed realloc(3)Xavier Del Campo Romero2023-04-305-10/+34
|
* wip3Xavier Del Campo Romero2023-04-073-32/+48
|
* wip2Xavier Del Campo Romero2022-12-0815-59/+185
|
* Add tests for transportXavier Del Campo Romero2022-11-113-0/+221
|
* WIPXavier Del Campo Romero2022-11-0180-770/+5138
|
* unit.h: remove unused constant MAX_UNIT_DIRECTIONSXavier Del Campo Romero2022-09-261-3/+1
|
* gui/line_edit: Allow setting input filtersXavier Del Campo Romero2022-09-262-1/+23
|
* Swap U offset for idle/pressed cursor spritesXavier Del Campo Romero2022-09-261-1/+1
| | | | | Since the cursor is mostly idle, it makes sense to set its sprite as the default.
* net: Relocate source files for consistencyXavier Del Campo Romero2022-09-244-3/+3
|
* net.h: Add missing extern "C"Xavier Del Campo Romero2022-09-231-0/+9
|
* input.c: do not fail on input_renderXavier Del Campo Romero2022-09-231-2/+2
| | | | | Implementation is still incomplete, and should not crash the application.
* join_menu.c: Update serial/IPv4 GUI menusXavier Del Campo Romero2022-09-231-24/+119
|
* ps1/net.c: return 0 on net_initXavier Del Campo Romero2022-09-231-1/+1
| | | | | Even if the implementation is not finished yet, this will avoid the program from crashing on startup.
* net: Implement net_availableXavier Del Campo Romero2022-09-233-1/+13
|
* net: Implement net_serial_devicesXavier Del Campo Romero2022-09-234-0/+40
| | | | | This function provides a platform-specific list of serial devices that can be accessed.
* keyboard: Add KEYBOARD_KEY_SLASHXavier Del Campo Romero2022-09-233-2/+6
|
* label.c: Set empty text by defaultXavier Del Campo Romero2022-09-231-1/+3
| | | | | This will avoid crashing the application on rendering due to uninitialized labels.
* gui.c: Remove unneeded conditionXavier Del Campo Romero2022-09-231-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 issuesXavier Del Campo Romero2022-09-231-2/+2
|
* gui: Allow elements to be hiddenXavier Del Campo Romero2022-09-233-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 handlingXavier Del Campo Romero2022-09-233-0/+22
|
* Implement checkbox GUI elementXavier Del Campo Romero2022-09-234-0/+116
|
* net: Group events into structXavier Del Campo Romero2022-09-213-16/+21
|
* gui: fix wrong logic on update/render/deinitXavier Del Campo Romero2022-09-211-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_menuXavier Del Campo Romero2022-09-209-5/+342
|
* Implement GUI line editXavier Del Campo Romero2022-09-204-0/+271
|
* gui: Implement gui_deinitXavier Del Campo Romero2022-09-202-0/+14
|
* Implement net componentXavier Del Campo Romero2022-09-2010-0/+555
|
* Remap calls to pad/mouse/keyboard to inputXavier Del Campo Romero2022-09-2022-94/+195
|
* Implement input componentXavier Del Campo Romero2022-09-204-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 functionsXavier Del Campo Romero2022-09-202-0/+83
| | | | These will be used by future commits.
* Minor code style fixesXavier Del Campo Romero2022-09-202-3/+1
|
* sdl-1.2: Remap missing keyboard keysXavier Del Campo Romero2022-09-201-2/+49
|