Commit graph

58 commits

Author SHA1 Message Date
goat
02e1f2502e
refactor: move Dalamud.Interface utils into main assembly, warnings pass 2023-08-04 19:36:09 +02:00
goat
a82096c671
fix: allow Window to be instantiated without Dalamud services 2023-07-11 20:54:59 +02:00
MidoriKami
e52f7696ba
Add Open/Close SFX to Window (#1298)
Co-authored-by: goat <16760685+goaaats@users.noreply.github.com>
2023-07-05 21:21:49 +00:00
goat
905fefe877
chore: clarify ownership in WindowSystem, deprecate GetWindow(name) 2023-01-27 00:58:04 +01:00
goat
636a6ae775
feat: add Window.BringToFront() 2023-01-26 23:26:40 +01:00
goat
261d8a167f
fix: explicitly declare InterfaceManagerWithScene as a dependency for PluginImageCache 2023-01-26 23:05:10 +01:00
wolfcomp
3dfc720878
feat: add IDisposable support to WindowSystem
This is because SamplePlugin contains an example of IDisposable that will never be called when calling RemoveAllWindows or RemoveWindow
2023-01-15 03:52:24 +01:00
goat
987ff8dc8f
chore: convert Dalamud to file-scoped namespaces 2022-10-29 15:23:22 +02:00
Cara
2045aa9228
Add ShowCloseButton property to Window to allow hiding the close button. (#906) 2022-07-01 06:55:39 +02:00
Ottermandias
8db4f6a578
Update Window.cs (#856) 2022-05-28 13:49:21 +02:00
Kaz Wolfe
40e6289321
fix: allow window list edits at any time
Slightly tweak the logic of the WindowSystem Draw() to make a shallow copy of the
window list before iterating over it. This allows for the list to be edited at
any time, but has a trade-off that modifications to the list won't take effect
until the next frame, which is negligible and would have been the case anyways.

This change does not break any existing APIs, and should incur minimal (if any)
performance penalty.
2022-04-12 19:31:53 -07:00
goaaats
febaaba998
chore: clean up warnings 2022-04-03 04:13:36 +02:00
LadyDefile
1c8dc0a2b5 Changes:
# Dalamud.Interface.Windowing.WindowSystem
* Turned GetWindows() function into Windows property.
2022-03-07 16:16:18 -06:00
LadyDefile
ee2aff9f0a # WindowSystem.cs
* Updated function summary for GetWindows()
2022-03-07 16:09:52 -06:00
LadyDefile
cbf9fbc8e2 # WindowSystem.cs
* Changed GetWindows() return type from Window[] to IReadOnlyList
2022-03-07 16:06:13 -06:00
LadyDefile
9cfc1cd804 # WindowSystem.cs
* Added a function "GetWindows()" that returns windows.ToArray() for collection access with encapsulation
2022-03-07 11:42:57 -06:00
LadyDefile
9f3be8f107 * Added a method for retrieving a Window object by name. 2022-02-26 13:29:29 -06:00
Ottermandias
fa4c57c886 Add two customization points for the window system that are executed always and that can control whether the window is drawn without toggling state. 2022-02-25 14:39:39 +01:00
goaaats
0200468149
fix: only call Window.Update() when the window is open 2021-12-30 10:51:23 +01:00
goaaats
45e3dc37a9
feat: add Window.Update() 2021-12-29 23:33:39 +01:00
goat
1561fbac00
Revert "refactor(Dalamud): switch to file-scoped namespaces"
This reverts commit b5f34c3199.
2021-11-18 15:23:40 +01:00
goat
b5f34c3199
refactor(Dalamud): switch to file-scoped namespaces 2021-11-17 19:42:32 +01:00
Raymond
339009a2fc Apply TitleBgActive coloring when minimized and focused
Window-System applicable only
2021-10-17 19:50:07 -04:00
Raymond
22810a1093 fix window focus for minimized windows 2021-10-17 19:50:07 -04:00
Raymond
9db492d26d formatting 2021-09-12 21:05:42 -04:00
Raymond
dd92824361 comment unused method 2021-09-12 21:05:21 -04:00
goat
936708861f
Merge branch 'master' of https://github.com/goatcorp/Dalamud 2021-09-11 20:04:33 +02:00
goat
5d5f2354c1
feat: add IsFocusManagementEnabled to dalamud config 2021-09-11 20:04:03 +02:00
Raymond
1920d91eff formatting 2021-09-10 08:01:44 -04:00
Raymond
dda515da85 feat: ImGuiManagedAsserts 2021-09-10 07:59:08 -04:00
Raymond
ad144cf7f4 Add more escape-button logging 2021-09-04 14:19:23 -04:00
Raymond
2c6834b4ba Log windowSystem focus changes 2021-09-03 07:03:37 -04:00
goat
9228fac4ee
feat: prevent AgentHud::OpenSystemMenu when any ImGui window has focus 2021-09-02 17:54:12 +02:00
goat
3f927ee7f0
fix: always set IsFocused to false when closing a window 2021-09-02 17:31:19 +02:00
goat
ff7b8fc1de
Namespace nullable 2021-09-02 00:54:43 +02:00
goat
99f5ac81f0
remove unused include 2021-09-01 20:45:15 +02:00
goat
8401488ec5
fix: don't consider child windows when checking Window focus 2021-09-01 20:44:45 +02:00
goat
3e9c1f8d53
feat: consider all WindowSystems globally 2021-09-01 20:44:21 +02:00
goat
412a335b93
feat: do not close addons when any Window is still open 2021-09-01 19:50:23 +02:00
goat
647d095fcc
feat: add Window.RespectCloseHotkey 2021-09-01 16:02:58 +02:00
goat
d5d18e1712
feat: add Window.IsFocused 2021-09-01 16:01:01 +02:00
goat
d2597f7520
feat: Window.PreConditionals() -> PreDraw(), add PostDraw() 2021-09-01 15:59:41 +02:00
Raymond
94f76beaf6 Add preConditionals virtual method 2021-08-31 20:48:57 -04:00
goat
de27e383b2
feat: escape to close topmost window in WindowSystem 2021-09-01 00:00:38 +02:00
goat
ac83077863
fix(Window): use a struct for SizeConstraints, you can't set them separately 2021-08-09 21:06:37 +02:00
Raymond
8fd119dde8 Migrate files to Dalamud.Logging namespace Remove Log.LogX methods. 2021-08-09 10:03:13 -04:00
Raymond Lynch
658eedca37 Magic the magic happen 2021-07-11 16:32:32 -04:00
Raymond Lynch
81b04b2b3c StyleCop: 10 files of small miscellaneous fixes 2021-05-29 21:11:55 -04:00
kalilistic
8495a42dd6 feat: add window toggle 2021-05-02 11:23:05 -04:00
goat
2d47ae61ef
fix(Window): unfuck OnOpen/OnClose logic (fixes #312) 2021-04-28 16:36:31 +02:00