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(fr)
34d3431e49
Boe Character/Scenario Editor[OsX]: retrieve also PlaySound in the preferences...
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)
6c904f3483
editors, OSX and menu[hack]: try to avoid crashes by postponing the creation of dialogs in the main loop.
2022-06-30 01:08:47 -04:00
3ba6266cd4
Fix editors launching in the top left corner of the screen
2020-02-23 23:29:44 -05:00
7b93726383
Replace 4-character constants with enums
...
This covers only the places where they were used to indicate
a preset selection in constructors.
The usage in qdpict where they're actually passed to the Resource Manager,
as well as the 4-character constants representing file types and creator
codes, are still present.
2020-02-21 00:16:58 -05:00
43b4379772
Fix Edit Custom Sheets option not working in an unpacked scenario
2020-02-10 08:35:59 -05:00
760a172526
Some style tweaks
2020-02-09 18:24:09 -05:00
deac7b0cb6
Merge pull request #251 from x-qq/fix_scrollbar_segfaults
...
fix for scrollbar segfaults
* fixes #206
* fixes broken mousewheel scrolling of the scenedit palette
* removed boost threads dependency
* added foundation for further refactoring of the drawing and event handling code: interfaces and drawable manager with layering
* removed a bunch of unneeded redraw calls
* removed some repeated recalculation of effectively constant values (boe.actions)
* removed recalculation of effectively constant scrollbar and button positions (boe.graphics)
Closes #251
2020-02-09 15:55:51 -05:00
335fb87e51
Store custom graphics classifications as symbols instead of integers
2020-02-09 12:10:52 -05:00
7e73a21f5c
Add "Add Item" and F1 menu key accelerator on Linux
...
Patch from @x-qq
Closes #195
2020-02-02 22:38:42 -05:00
c4c201db6e
Implement the most important menu key accelerators for Linux
...
Patch from @x-qq
2020-02-02 21:40:58 -05:00
91da0ed4d0
Update references to the online documentation
2020-02-01 22:28:25 -05:00
f9f4d5671c
Factor out the framerate limiter into a class
...
Patch from @x-qq
2020-02-01 21:03:56 -05:00
3e686cb908
Tweak text colours to be less blindingly bright and closer to the original Mac BoE
2020-02-01 19:55:30 -05:00
5675ab8c71
Add menus to Linux character editor
...
Patch from @x-qq
2020-02-01 19:55:30 -05:00
1d61d48ec3
Enable UI scaling in the scenario and implement Linux menus
...
Patch from @x-qq
Addresses #195
Note: UI scaling for the scenario editor still needs some work,
but it's basically functional.
2020-01-28 20:13:24 -05:00
d530abe00b
Make use of the new resource manager's purgeable flag
2020-01-26 16:14:39 -05:00
14e2597108
Expose the shared pointer instead of the raw pointer in the resource manager and rewrite the custom sheets list to use a vector instead of manual memory management
...
In particular, this should fix a segmentation fault in the sound system caused by the resource manager pulling a resource that's in use.
2020-01-26 15:10:57 -05:00
542c037342
Integrate a new resource manager which should have better performance
2020-01-26 11:53:19 -05:00
a5a7f161c8
Remove the init thread from the scenario editor
...
The reasoning is the same as for the main game.
2020-01-19 15:39:41 -05:00
e4b98a1634
Add a hidden preference to skip the Spiderweb logo at startup
...
The same preference also skips the scenario editor startup splash
In order to enable that, the scenario editor now loads prefs.
2020-01-19 15:39:41 -05:00
6f96222c37
Remove the 30-item limit in shops
2019-12-02 01:16:34 -05:00
4ad84e6cf8
Missed some when fixing #191
2018-04-07 09:38:13 -04:00
9073063423
Merge branch 'merge_linux' of https://github.com/murlock/cboe
2018-03-03 17:52:59 -05:00
Mark Clark
e70c360e11
Minor fixes to get build working for vs2017 project;
2018-02-25 14:55:13 -05:00
8759aad90a
Move Xcode project to a separate tree parallel to src
2018-02-19 02:11:29 -05:00
c21b0b8de7
Fix #155
2018-02-18 16:26:10 -05:00
Michael Bonfils
12c3ce26f8
Fix compilation of linux
2018-02-10 17:08:33 +01:00
Michael Bonfils
d940f2c39d
Merge branch 'linux' into merge_linux
2018-02-08 20:36:46 +01:00
beadb49217
Fix scons build
...
Tested on Mac only, but probably also works on Windows/Linux
2017-09-04 20:45:45 -04:00
4c135e57fa
Fix scenario editor build
2017-09-04 20:42:37 -04:00
9c69e006d8
Refactor rendering to use an SFML view for placing the main UI within the overall interface
2017-09-04 14:36:55 -04:00
9d86053817
Fix up MSVC project file for the major reorganization
2017-08-30 00:09:01 -04:00
1f9615d185
Add an info structure for eItemType enum
2017-04-15 02:03:42 -04:00
c2ce2a2cd1
Split up the graphtool files
2017-04-14 15:43:07 -04:00
e98f9381fe
Move special node category into the node properties struct
2017-04-14 00:50:38 -04:00
82abdab695
Major code reorganization
...
This commit only updates the XCode project for the changes.
A later commit each will update it for scons and MSVC.
A few actual changes are mixed in:
- Add a prefix header for a handful of common definitions
- Moved current_cursor into the Cursor class as a static member
- Removed the make_cursor_sword and make_cursor_watch functions
- Include tests in the All target
- Remove redundant -l flags for Common and Common-Party (since they're included in the Link phases anyway)
2017-04-14 00:24:29 -04:00
b624841bea
Windows/ScenEd: Enable undo/redo as appropriate
2017-04-12 02:03:47 -04:00
4f91f6a679
Make undo system a little safer, and improve docs
2017-04-11 15:00:22 -04:00
7fc3001245
Confirm before creating a new scenario when one is being edited
2017-02-12 18:27:44 -05:00
683ab805ec
Initial framework for scenario editor undo/redo
...
In addition to the framework, this enables undo/redo of one action - adding a new town
2017-02-12 18:27:01 -05:00
e38053d39f
Remove some spurious scenario editor error messages
...
These errors are all no longer necessary due to the editor loading the entire scenario into memory at the same time
2017-02-12 18:19:29 -05:00
59f2a7b94e
Some code cleanup, mainly constants
...
- Strip out unused constants
- Use const instead of #define
- Remove some obsolete comments
2017-02-12 00:04:53 -05:00
2b8ff52992
Don't cancel adding a special shop entry if the node hasn't been set
...
(The designer may want to add the entry and then later come back and create the node.)
2017-02-10 12:13:46 -05:00
20ff735d2f
Add a Vahnatai PC graphic by "Kelyar-Ihrno"
2017-02-08 16:58:31 -05:00
92ba1e0fb0
Fix "Center" text positioning, and replace it with context-sensitive tooltips
2017-02-07 22:24:28 -05:00
6b857e6e43
Fix some isses with editing outdoor encounters
2017-02-07 22:17:58 -05:00
bc810f9238
Fix warning message when setting a node that doesn't yet exist
2017-02-07 20:09:42 -05:00
61816b7529
Fix inability to set special nodes outdoors
2017-02-07 20:09:15 -05:00