ALONSO Laurent
6c753ee0f0
[calref/cboe]: Split out cContainer, cLed, and cLedGroup into their own files
2022-06-30 01:10:44 -04:00
ALONSO Laurent
4867b26258
[calref/cboe]: Fix a couple of broken dialogs
2022-06-30 01:10:42 -04:00
ALONSO Laurent
be520e9acc
[calref/cboe]: Allow automatically calculating both the width and height
...
of a text label
This fixes welcome dialog links triggering when you hit OK in the right place
2022-06-30 01:08:48 -04:00
ALONSO Laurent
418e242fda
[calref/cboe]: Links in the welcome dialog are now clickable
2022-06-30 01:08:48 -04:00
ALONSO Laurent
4707fd7532
[calref/cboe]: Implement automatic height calculation for text labels
2022-06-30 01:08:48 -04:00
ALONSO Laurent
62282b6cbf
[calref/cboe]: Adjust the hilited string rendering to be less reliant on
...
mysterious magic numbers
It still adds a mysterious offset to all text, but the returned rectns are now perfectly aligned to redraw the hilited string.
2022-06-30 01:08:48 -04:00
ALONSO Laurent
236e6f0845
[calref/cboe]: Disabled Travis CI builds
2022-06-30 01:08:48 -04:00
ALONSO Laurent
fef06cadec
legacy[save]: try to improve the loading of a save...
2022-06-30 01:08:48 -04:00
ALONSO Laurent
afda3a09f5
save[legacy]: try to solve many problem
...
+ force monst.which_town to be set ( to fix a problem when saving context)
2022-06-30 01:08:48 -04:00
ALONSO Laurent
a1e0158c56
legacy: try to reconnect odd text response's data...
2022-06-30 01:08:48 -04:00
Laurent alonso
6ff481df11
journal: try to delete correctly the talking notes
2022-06-30 01:08:48 -04:00
Laurent alonso
199dc92a88
check that picture id are correct...
2022-06-30 01:08:48 -04:00
Laurent alonso
3811e5b1c8
cboe: try to reset end_scenario to false correctly...
2022-06-30 01:08:48 -04:00
Laurent alonso
1bf43ee01e
special.cpp: retrieve correctly allow/deny enter in legacy scenario,
...
universe.cpp: correct a memory problem...
2022-06-30 01:08:48 -04:00
Laurent alonso
303674da10
boe.infodlg.cpp: try to correct a problem when displaying notes,
...
gfxsheets.cpp: try to make the scenario's graphic resolution independent...
2022-06-30 01:08:48 -04:00
Laurent alonso
1daca1cf55
graphics:
...
- use the UI scaling to define the size of the renderer textures,
- allow talk_gworld to be rescaled,
- allow to read rescaled graphics in the scenario in cboe, assuming
that there are scaled similarly in X and Y. The scenario editor is
also able to display them but its code will need to be modified to
make it able to edit them...
2022-06-30 01:08:48 -04:00
Laurent alonso
92eee35b66
graphics: finish to change code to store some images as Texture, ...
2022-06-30 01:08:48 -04:00
Laurent alonso
a407d61f4c
graphics: continue to change code to store some images as Texture
...
+ replace graf_pos and graf_pos_ref by Texture_ref
+ correct cCustomGraphics::copy_graphic
2022-06-30 01:08:48 -04:00
ALONSO Laurent
fcc2db7a5e
graphics: continue to change code to store some images as Texture...
2022-06-30 01:08:48 -04:00
Laurent alonso
c31bb2d0ff
graphics: continue to rewrite code to be more simple ;
...
retrieve modifications to allow to load some graphics with different
resolutions: actionhelp, bigscenpics, fighthelp, invenhelp, outhelp,
scenpics, stathelp, townhelp, dlogpics, dlogscrollled, dlogscrollwh,
edbuttons, edsplash, pcedtitle.
2022-06-30 01:08:48 -04:00
Laurent alonso
e625927a29
graphics: begin to rewrite code to be more simple: - add
...
a struct Texture to store a sf::Texture and the application's texture sizes,
- add a texture resources manager and retrieve codes to allow - if needed,
rescaling startsplash and spidlogo at startup - loading some graphics with
different resolutions: buttons, inventory, pcedbuttons, statarea,
startanim, startbut, startup, terscreen, textbar, transcript can be
used to load high resolution pictures.
Note: currently, render_image and res_image are a mess as Texture and sf:Texture classes
cohabit :-~
2022-06-30 01:08:48 -04:00
Laurent alonso
44c063abd2
graphicsUnditheredByHand: update some pictures...
2022-06-30 01:08:48 -04:00
Laurent alonso
1284e589e1
graphic: if needed, scales startsplash and spidlogo at startup
2022-06-30 01:08:48 -04:00
Laurent alonso
5a8ea7f0ae
graphicsUndithered: indexed png undithered by algorithm,
...
graphicsUnditheredByHand: some pngs undithered by hand.
2022-06-30 01:08:48 -04:00
alonso
c93a50b514
Try to add a XCode 11 proj assuming that
...
- boost is installed with brew
- /usr/local/SFML contains SFML, ie. /usr/local/SFML/{Frameworks,include,lib} exist
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
0e50c69dd8
special: avoid infinite loop...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
07033ca887
handle_death: try to repair restore...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
2902d84e30
ASAN: check that terrain type is ok...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
1ec2a0acea
add some 0str dialogs...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
97974d849e
scenario[legacy]: do not nuke all monsters if particuliar type==0...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
3d6fca22a5
UI scaling: add a different scaling for minimap + add more values...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
b83df312d3
OsX[retina]: add high resolution capable flag...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
35e1599f71
UI scaling: try to also scale the mini_map
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
5896188094
UI scaling: try to also scale the dialogs(simplify code)...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
34d3431e49
Boe Character/Scenario Editor[OsX]: retrieve also PlaySound in the preferences...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
141b668eb6
BoE Character Editor[OSX]: add preferences to define UI scaling...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
31b433d6c7
BoE Scenario Editor[OSX]: add preferences to define UI scaling...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
0ccfc61e93
spell point: allow to decrease sp even if sp=max_sp...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
7ded3367a5
draw_monster: draw correctly complex monster...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
d948023243
end_scenario: do not forget to reset it when loading a save game...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
edf03d31f8
special: implements raise from dead/dust/stone...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
28c75935fd
save[timers,correction]: try to save the timers correctly...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
e46e36cfeb
save: try to save the magic_ptrs correctly...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
5c72f59045
save[timers]: try to read the timers correctly...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
2650a35d9b
lighting: try to avoid looking through walls...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
974e614c3b
draw_terrain: protect also town's out of bounds...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
23a0e022a7
monster: do not set health to 32767 if uneeded...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
47a9695ef1
roster: try to display the right monster...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
7a47a397c7
special[hack]: called the town's exit when leaving the town (instead of outdoor)
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
b0c4a1196e
spec_loc_t: force .spec to be initialized...
2022-06-30 01:08:48 -04:00