Commit Graph

2059 Commits

Author SHA1 Message Date
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
Laurent Alonso(fr)
abe8287616 special[legacy]: make_town_hostile has only one meaning...
set_town_attitude: lo=-1,hi=-1 seems to mean all monsters at least in special...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
4881471f20 Try to init town.difficulty: set it by default to scenario.difficulty 2022-06-30 01:08:47 -04:00
Laurent Alonso(fr)
2738a6ca3a display[mac]: add more setActive(false) 2022-06-30 01:08:47 -04:00
Laurent Alonso(fr)
38260ec8c2 special: try to make IF_ON_{BOAT|HORSE} work... 2022-06-30 01:08:47 -04:00
Laurent Alonso(fr)
8144d44ca0 stuff_done: be sure to initialize them when a party is created, ... 2022-06-30 01:08:47 -04:00
Laurent Alonso(fr)
04efbe763d Allow Flying Scroll to be used outdoor... 2022-06-30 01:08:47 -04:00
Laurent Alonso(fr)
64878f2ac9 ASAN: memmove is better than memcpy when overlapping is possible... 2022-06-30 01:08:47 -04:00
Laurent Alonso(fr)
674ebfdc8b ASAN: correct another bound problems... 2022-06-30 01:08:47 -04:00
Laurent Alonso(fr)
70108be987 try to correct look_outdoor_mode 2022-06-30 01:08:47 -04:00
Laurent Alonso(fr)
a9ece71c3e conveyor: only push people/object on a conveyor + use the real flag: flag1 2022-06-30 01:08:47 -04:00
Laurent Alonso(fr)
f7a4ef0727 cPopulation: try to make the monsters more persistent to simplify
other code...
2022-06-30 01:08:47 -04:00
Laurent Alonso(fr)
98de45e496 boat/horse: try to avoid drawing ghost's vehicle... 2022-06-30 01:08:47 -04:00
Laurent Alonso(fr)
5d7b4b5ee8 Do no talk to death people, this may break some scenario... 2022-06-30 01:08:47 -04:00
Laurent Alonso(fr)
4ce0af7777 ASAN: try to avoid a out of bound read in draw_terrain 2022-06-30 01:08:47 -04:00