Ivan Savenko
|
bd5682ecc3
|
Merge remote-tracking branch 'vcmi/master' into develop
|
2024-01-19 13:49:54 +02:00 |
|
Ivan Savenko
|
3e8f110482
|
Merge pull request #3515 from SoundSSGood/backpack-statusbar
Backpack statusbar
|
2024-01-18 16:05:42 +02:00 |
|
SoundSSGood
|
a753319ad0
|
backpack window statusbar
|
2024-01-18 15:55:54 +02:00 |
|
Laserlicht
|
a1f4fcb78a
|
hide adventuremap
|
2024-01-18 00:47:18 +01:00 |
|
Alexander Wilms
|
7a1cee1a60
|
Fix error: 'auto' not allowed in non-static struct member
|
2024-01-17 14:49:28 +00:00 |
|
Alexander Wilms
|
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 |
|
Ivan Savenko
|
0d0d3d8c80
|
Renamed speed -> getMovementRange, remove misleading default parameter
|
2024-01-14 17:14:36 +02:00 |
|
Ivan Savenko
|
7cf738b20e
|
Merge pull request #3462 from Laserlicht/trim_text
limit textboxes
|
2024-01-12 21:53:30 +02:00 |
|
Ivan Savenko
|
019a4151b9
|
Merge pull request #3258 from SoundSSGood/trade-panels
Market rework
|
2024-01-12 21:53:13 +02:00 |
|
SoundSSGood
|
b840cf3650
|
suggested changes
|
2024-01-11 12:46:32 +02:00 |
|
Alexander Wilms
|
f3277b7953
|
Define each identifier in a dedicated statement
|
2024-01-10 00:22:23 +00:00 |
|
SoundSSGood
|
fdf60b2151
|
moved to widgets/markets
|
2024-01-09 20:21:09 +02:00 |
|
SoundSSGood
|
d0ca63d2c9
|
subclasses for market composition
|
2024-01-08 16:24:47 +02:00 |
|
SoundSSGood
|
50a5c72d1b
|
Creatures trade panel
|
2024-01-08 16:24:47 +02:00 |
|
SoundSSGood
|
791ee78cc4
|
players trade panel
|
2024-01-08 16:24:47 +02:00 |
|
SoundSSGood
|
f043c417a1
|
Artifacts trade panel
|
2024-01-08 16:24:47 +02:00 |
|
SoundSSGood
|
b246e24811
|
reworking slot selection
|
2024-01-08 16:24:47 +02:00 |
|
SoundSSGood
|
6c828d1be9
|
Resources trade panel
|
2024-01-08 16:24:47 +02:00 |
|
Laserlicht
|
24d4816a36
|
trim text
|
2024-01-07 23:42:48 +01:00 |
|
Ivan Savenko
|
a2f603ac02
|
Fixed some cases of illegal access to std::array::operator[]
|
2024-01-07 12:45:02 +02:00 |
|
Laserlicht
|
9066dbcbd4
|
spellbook fix pages
|
2024-01-01 14:57:55 +01:00 |
|
Ivan Savenko
|
a9005da01e
|
Merge pull request #3366 from Laserlicht/battle_informations
Battle stacks informations
|
2023-12-28 12:39:26 +02:00 |
|
Dydzio
|
046d3abee4
|
Add new setting for instant adventure map fade in / fadeout effects
|
2023-12-24 17:18:48 +01:00 |
|
Laserlicht
|
39c58a9d94
|
disable animation button
|
2023-12-24 00:41:29 +01:00 |
|
Laserlicht
|
f0c97b344a
|
add duration + morale/luck
|
2023-12-23 16:07:12 +01:00 |
|
Laserlicht
|
c20f0bdc3e
|
using CHeroArea
|
2023-12-22 01:30:41 +01:00 |
|
Laserlicht
|
f75ccc308b
|
right click opens hero info
|
2023-12-22 00:07:41 +01:00 |
|
Ivan Savenko
|
27d2fc0a13
|
Merge pull request #3186 from SoundSSGood/quick-backpack-part1
Quick backpack window
|
2023-12-21 17:10:15 +02:00 |
|
Laserlicht
|
c6434c31fb
|
small fix
|
2023-12-20 20:34:57 +01:00 |
|
Laserlicht
|
1dd2a28760
|
small fix
|
2023-12-20 20:23:35 +01:00 |
|
Laserlicht
|
ed671fa2fa
|
big spellbook optimize
|
2023-12-20 20:16:23 +01:00 |
|
SoundSSGood
|
e5c532beb4
|
gesture for quick backpack window
|
2023-12-20 16:55:38 +02:00 |
|
SoundSSGood
|
21b02414bf
|
Refactoring. Callbacks have been encapsulated. Added cursorPosition
|
2023-12-19 19:01:56 +02:00 |
|
SoundSSGood
|
29b61081f3
|
Quick backpack
|
2023-12-19 19:01:56 +02:00 |
|
Ivan Savenko
|
732cdfec73
|
Merge pull request #3254 from Laserlicht/spell_search
search spells
|
2023-12-18 13:23:06 +02:00 |
|
Laserlicht
|
77505af71b
|
remove removefoucs
|
2023-12-17 22:17:32 +01:00 |
|
Laserlicht
|
9299eaed36
|
code review
|
2023-12-16 21:10:27 +01:00 |
|
Laserlicht
|
56562ad8dc
|
date time format
|
2023-12-16 18:57:38 +01:00 |
|
Ivan Savenko
|
4fa33c8d2e
|
Merge pull request #3279 from Laserlicht/smooth_scroll_fix
smooth scroll fix and gui option to disable
|
2023-12-10 22:49:43 +02:00 |
|
Laserlicht
|
df2a5f05d8
|
audio mute on focus lost setting
|
2023-12-10 14:49:27 +01:00 |
|
Laserlicht
|
e74c2262c3
|
add option to gui to disable smooth dragging
|
2023-12-10 13:38:58 +01:00 |
|
Laserlicht
|
dfb10bdfcb
|
search rectangle
|
2023-12-08 22:52:34 +01:00 |
|
Laserlicht
|
95ff89f622
|
search spells
|
2023-12-08 22:46:05 +01:00 |
|
Ivan Savenko
|
0fd966818f
|
Remove 'visible' property from images, replaced with enable/disabled
call
|
2023-12-07 13:57:16 +02:00 |
|
Ivan Savenko
|
d919cb0eac
|
Merge pull request #3240 from IvanSavenko/bugfixing
[1.4.0] Bugfixing for beta
|
2023-12-02 12:20:37 +02:00 |
|
Ivan Savenko
|
55ad903ffb
|
Merge pull request #3231 from dydzio0614/large-spellbook-setting
Split large spellbook from UI enhancements setting
|
2023-12-02 12:13:06 +02:00 |
|
Dydzio
|
fc035b1b55
|
Change large spellbook config section to gameTweaks
|
2023-11-28 22:30:50 +01:00 |
|
Ivan Savenko
|
ea8995e901
|
Fixed check for free slots when recruiting in towns
|
2023-11-28 16:25:11 +02:00 |
|
Ivan Savenko
|
d5f8db2222
|
Fixed undefined behavior on accessing array with -1 index
|
2023-11-27 14:09:08 +02:00 |
|
Ivan Savenko
|
344d8891e4
|
Fix display of creatures to sell in Freelancer Guild
|
2023-11-27 14:08:49 +02:00 |
|