1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00
Commit Graph

181 Commits

Author SHA1 Message Date
359503f878 preselect last save in loading screen 2024-05-16 13:16:14 +02:00
93c3cf372b Reworked TextInput to allow text overflow support 2024-05-15 12:45:45 +00:00
1abe9007bc Moved CTextInput to a separate file. No changes in logic 2024-05-15 12:45:45 +00:00
64d6e48540 Fixed mouse double-click handling in some widgets.
Now double-click when 1st click was not inside widget should work as
expected:
- scenario list: 2nd click on non-selected scenario will select it
instead of starting unselected map
- component selection: 2nd click on non-selected component would select
it instead of confirming choice
- town portal dialog: 2nd click on non-selected town would only select
it
- tavern window: right-click would now also select this hero (h3 logic)
2024-05-10 16:05:59 +00:00
1f850b8e4e fix error with custom campaign 2024-04-20 18:57:53 +02:00
b74c1818c4 set save name by default 2024-04-16 21:21:20 +02:00
c99d4b959e Fix potentially uninintialized variables 2024-04-11 13:25:54 +03:00
2c9b7089ad Merge pull request #3645 from vcmi/save_rmg_options
Save rmg options
2024-03-14 19:54:08 +01:00
e7af9d5607 Code review fixes, Sonarcloud fixes 2024-03-04 21:23:17 +01:00
0051ffa7a9 Implemented configurable buttons. Replaced 'animateLonelyFrame' logic. 2024-02-29 13:57:25 +02:00
07d201502e Refactoring of button class to prepare for configurable button 2024-02-29 13:57:25 +02:00
2c32c770f7 First version that works in lobby 2024-02-29 12:45:08 +01:00
388ca6e776 Added list of active accounts and rooms to UI. Added room creation logic 2024-01-26 16:32:36 +02:00
0a1153e1c6 Switch client-server communication to new API 2024-01-19 23:49:59 +02:00
bd5682ecc3 Merge remote-tracking branch 'vcmi/master' into develop 2024-01-19 13:49:54 +02:00
73019c204d Replace redundant types with auto for the lvalues of template factory functions for smart pointers
grep -r --include \*.h --include \*.cpp "= std::" * | grep -v auto | grep -Po ".*[^ ]+ [^ ]+ [^ ]*[ ]*=.*;" | grep -v "auto\|int\|char\|bool\|float|\double\|for\|if\|googletest\|fuzzylite\|size_t\|using\|return" | grep -v double | grep -v si64 | grep -v si32 | grep -v ui32 | grep \< | grep -v float | tr -d '\t' | grep -v assert > redundant_types.txt

import re

with open("redundant_types.txt") as f:
    for line in f:
        line = line.strip()
        path = line.split(":", 1)[0]
        original_code = ":".join(line.split(":")[1:]).strip()

        print()
        print(path)
        print(original_code)
        prefix = "auto "
        if original_code.startswith("static"):
            static = True
        else:
            static = False

        cpp_type = " ".join(original_code.split("=")[0].strip().split(" ")[0:-1])
        print(cpp_type)

        if static:
            new_code = "static auto "+ " ".join(original_code.split(" ")[2:])
        else:
            new_code = "auto "+ " ".join(original_code.split(" ")[1:])
        print(new_code)

        if True:
            with open(path, "r") as f:
                filedata = f.read()

            filedata = filedata.replace(original_code, new_code)

            with open(path, "w") as f:
                f.write(filedata)
2024-01-17 12:50:00 +00:00
7cf738b20e Merge pull request #3462 from Laserlicht/trim_text
limit textboxes
2024-01-12 21:53:30 +02:00
f3277b7953 Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
056dccda30 different max width 2024-01-08 00:08:05 +01:00
24d4816a36 trim text 2024-01-07 23:42:48 +01:00
8b262e49a6 add sort for changedate 2024-01-07 20:17:44 +01:00
b88a8da4e8 Split off some netpack structures into separate files 2023-10-23 13:59:15 +03:00
0eba0ee686 show random maps 2023-10-21 02:12:34 +02:00
ec8580b99e Merge branch 'develop' into patch-4map_overview_rework 2023-10-02 21:03:16 +02:00
79e66c38df layout 2023-09-30 17:14:22 +02:00
718bafc8af map overview rework 2023-09-30 15:05:12 +02:00
03c099d4fd First steps 2023-09-27 22:53:13 +02:00
9cf274362e small folder optimation 2023-09-12 20:28:54 +02:00
1d0e696db6 Added RenderHandler that acts as factory for images and animations 2023-09-04 18:22:34 +03:00
823ffa7a07 Always use ResourcePath for referencing images and animations 2023-09-04 18:22:34 +03:00
e0460a0dec up should be first 2023-09-02 19:04:06 +02:00
ce20d913e0 Fix checking PlayerColor's for validness 2023-08-27 01:35:38 +03:00
4edee00a97 Merge pull request #2605 from Laserlicht/map_preview
Map preview
2023-08-21 14:56:21 +04:00
05a88bd8ac another try... 2023-08-20 23:34:09 +02:00
080630b39f try to fix 2023-08-20 22:22:46 +02:00
5c5576313b handle long texts better; big window also for only one layer 2023-08-20 16:58:13 +02:00
952ce3061b avoid crash if any error in map 2023-08-20 14:28:10 +02:00
e3a4c65100 code review 2023-08-20 14:14:47 +02:00
1d94536299 code review 2023-08-20 13:16:39 +02:00
4a6deedd5e Merge pull request #2530 from Nordsoft91/tutorial
Support tutorial
2023-08-19 18:06:15 +04:00
e44f713f01 side by side map; player colors 2023-08-17 23:09:20 +02:00
edc11fd451 Map preview initial draft 2023-08-17 09:56:50 +02:00
96e820ddac Merge pull request #2517 from Laserlicht/folders 2023-08-17 10:09:37 +04:00
71bcc611f5 review 2023-08-15 20:19:13 +02:00
0452dbd80d remove copy of cropped asset 2023-08-14 23:08:20 +02:00
92159e57ef Update SelectionTab.cpp
fix possible -1
2023-08-12 19:51:18 +02:00
f13a53c1d9 Merge remote-tracking branch 'vcmi/beta' into develop 2023-08-12 17:28:47 +03:00
f0b60cf166 suggestions; use internally uppercase; fix; fullname 2023-08-11 23:56:20 +02:00
6ca5518ff1 Buxfix 2023-08-11 20:09:41 +02:00
2d9bb34825 format 2023-08-11 01:49:10 +02:00