Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from BAndysc:master #24

Open
wants to merge 1,713 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1713 commits
Select commit Hold shift + click to select a range
f40525c
[UX] Fixed Control+Tab executed twice
BAndysc Jan 15, 2024
52451b3
[DBC] Fix loading Trigger Spell in legion
BAndysc Jan 22, 2024
813ddc9
[UX] Creature, GameObject, Quest, Spell pickers will work as expected…
BAndysc Jan 22, 2024
64af674
[SQL Workbench] Fixed a bug when a query that contained 'use _' text …
BAndysc Jan 22, 2024
5f16294
[Smart Script] Fixed a rare bug when in select action/event/target wi…
BAndysc Jan 22, 2024
36953c6
[SmartScript/UX] Fixed group description textbox width overflow
BAndysc Jan 23, 2024
8eaec68
[Code] VeryFastTableView cell spans and customizable row height
BAndysc Jan 16, 2024
5a63718
[Conditions] Improvements to conditions
BAndysc Jan 16, 2024
4ab8349
[UX/Code] VeryFastTableView improvements
BAndysc Jan 22, 2024
a1df5a2
[Database] Load OrderIndex from quest_objective
BAndysc Jan 23, 2024
6c89d0c
[Code] RemoteConnectorException
BAndysc Jan 24, 2024
313c806
[Code] Optimize VeryFastTableView
BAndysc Jan 24, 2024
80d2dde
[Parameters] Hot fix default value in objective searcher
BAndysc Jan 24, 2024
d492cd9
[SQL Workbench] Fixed a bug when pasting a row didn't paste a row
BAndysc Jan 24, 2024
f9e206b
[SmartScript/UX] Fixed group description textbox width overflow
BAndysc Jan 25, 2024
f0869fd
[Parameters] Add SceneTemplateParameter
BAndysc Jan 25, 2024
bc1bb6e
[Code] Fix missing event unsubscribe which can lead to a crash in som…
BAndysc Jan 25, 2024
186a4ec
[Sessions] Fixed a bug where a non serializable document couldn't pre…
BAndysc Jan 25, 2024
deb306a
[UX] Icon/Text toggle option for toolbar buttons
BAndysc Jan 26, 2024
61776b8
[SmartScript/UX] Fixed a rare bug when pasting a group description wi…
BAndysc Jan 26, 2024
d169934
[UX] Fixed a bug when a flag selector popup didn't hide when the wind…
BAndysc Jan 26, 2024
7fb4a34
[Code] Fix typo
BAndysc Jan 28, 2024
12b646b
[Tables] Added an option to skip generating auto generated comment
BAndysc Jan 29, 2024
3fefe86
[SQL Workbench] Sort tables by name
BAndysc Jan 29, 2024
2a92545
[Parser] Update parser
BAndysc Jan 29, 2024
8fa402a
Added item_template definitions and 95% of help tooltips and paramete…
Jan 28, 2024
0435420
[Tables] Small improvements to item_template editor
BAndysc Jan 29, 2024
2b3cece
[SOAP] Event based editor commands
BAndysc Jan 31, 2024
0c24186
[Code] ISolutionItem Clone method
BAndysc Feb 1, 2024
68b5ca0
[Database] Fix wrong creature_text test
BAndysc Feb 2, 2024
8931ef6
[SQL Workbench] Fixed a bug when results refresh takes a long time an…
BAndysc Feb 2, 2024
8ba549e
[UX] Fixed incorrectly displayed toolbars in some cases
BAndysc Feb 2, 2024
07b1356
Update Avalonia CI nuget url
BAndysc Feb 5, 2024
ebadea8
Update Avalonia CI nuget url
BAndysc Feb 5, 2024
fbb81b7
[Updater] Auto updater will now show a popup and will periodically ch…
BAndysc Feb 6, 2024
4f876a9
[Parameters] SmartScenarioStepParameter
BAndysc Feb 6, 2024
c982bb5
[Remote connection] Added EditorConnected, EditorDisconnected events
BAndysc Feb 6, 2024
a80ac7f
[Loot] Fixed opening cross references
BAndysc Feb 7, 2024
33dbbab
[Loot] Fix a bug with loading loot difficulties in some cases
BAndysc Feb 7, 2024
5563899
0.10.999-cibuild0044575-beta
BAndysc Feb 8, 2024
c42f35d
[DBC] Corrected loading spells for TBC and Wrath
BAndysc Feb 8, 2024
05ca9c0
[Parameters] Fix CreatureTextParameter
BAndysc Feb 8, 2024
9dd8f79
[Updater] Auto updater will no longer show a popup if it is not the f…
BAndysc Feb 9, 2024
bbda4e6
[SmartScript] GlobalVariableType.MapEvent
BAndysc Feb 9, 2024
b2d66a8
[SOAP] Added HasValidSettings property
BAndysc Feb 9, 2024
84f2b77
[Tables] Support float primary key columns in MultiRecord tables
BAndysc Feb 12, 2024
46a7f2b
[Update] Fix update popup when EnableSilentUpdates is set to false
BAndysc Feb 13, 2024
918baa3
[Loot editor] Fix gameobject entry, items selection
BAndysc Feb 13, 2024
c90d097
[UX] Fixed a bug in table editors where too fast table editing may ca…
BAndysc Feb 13, 2024
4fb99cf
[Source] Find Anywhere can search in a provided source code
BAndysc Feb 16, 2024
96b6dbd
[Parameters] Added PathPointParameter
BAndysc Feb 16, 2024
629bed2
[Parameters] New IContextualParameterFromStringAsync
BAndysc Feb 16, 2024
bb7ab67
[DBC] Fix dbc loading on new versions
BAndysc Feb 20, 2024
f3a54d6
New Hotkeys Added:
Feb 20, 2024
4f4d1c3
Control + Number will work with NumPad numbers too
Feb 21, 2024
3591bdb
[Parameters] ConversationParameter
BAndysc Feb 22, 2024
8eb57d7
[Find Anywhere] Fixed find in files
BAndysc Feb 22, 2024
b4df411
[SmartScript] Fixed special fill textbox
BAndysc Feb 22, 2024
3a14355
[UX] Info Bar control ported from FluentAvalonia
BAndysc Feb 17, 2024
4f3108d
[Debugging] Debugging features
BAndysc Feb 2, 2024
82af7ff
[Core] Show error from initialization
BAndysc Feb 22, 2024
a0134d5
[UX] Move `Add spell to the debugger` below other options
BAndysc Feb 22, 2024
6cbc1e5
[SmartScript] Crash fix
BAndysc Feb 22, 2024
0ca944e
[UX/Tables] Search in float columns
BAndysc Feb 22, 2024
cfb3800
[DBC] Fix dbc loading
BAndysc Feb 23, 2024
eda36e3
Put UPDATE statement before smart_scripts DELETE statement when gener…
mdX7 Feb 23, 2024
8dc6fa7
[Deps] Update Antlr4BuildTasks
BAndysc Feb 23, 2024
c1b5d10
[CI] Fix test in Release build mode
BAndysc Feb 23, 2024
3980ee4
[Parameters] QuestStartParameter
BAndysc Feb 23, 2024
867ae8d
[Database] Nullable creature_template name
BAndysc Feb 25, 2024
2b7463e
[Database] Waypoints count
BAndysc Feb 27, 2024
7abdcfa
[SmartScript] Fixed a visual bug during save
BAndysc Feb 29, 2024
6ddb6e5
[Code] HierarchicalIndexContainer::RemoveGroup
BAndysc Feb 29, 2024
87c04ee
[Updater] Improve updater to display error messages
BAndysc Feb 29, 2024
ec32451
[Parameters] GossipMenuOptionParameter is async now
BAndysc Feb 29, 2024
53130e6
[Loot editor] Treasure loot will not require quest entry
BAndysc Feb 29, 2024
28f4f54
[UX] Icons in Smart Script editor
BAndysc Mar 1, 2024
117a3af
[.NET] Future editor release will use .NET 8. Added a warning box to …
BAndysc Mar 4, 2024
dee881c
[Parameters] ZoneParameter
BAndysc Mar 4, 2024
2cc6dc4
[Loot] Reference loot should use positive item value
BAndysc Mar 6, 2024
38be17f
Avalonia 11 upgrade
BAndysc Jan 4, 2023
3ce830c
Fixes
BAndysc Mar 9, 2024
d83de42
Avalonia 11 (#214)
BAndysc Mar 9, 2024
04bd5dd
[Controls] VirtualizedTreeView improvements
BAndysc Mar 12, 2024
3cceac1
[Core] Don't load external dlls in debug
BAndysc Mar 12, 2024
162b334
[CI] Improvements to database tester output
BAndysc Mar 12, 2024
2dd8a3a
[Dock] Fixed dock state saving
BAndysc Mar 12, 2024
8b34906
Merge remote-tracking branch 'origin/dev' into avalonia11
BAndysc Mar 12, 2024
fe3f8e5
Merge branch 'avalonia11'
BAndysc Mar 12, 2024
6e91012
[SQL] Support for dumping tables in socket based connections
BAndysc Mar 12, 2024
f6dc04b
Merge fix
BAndysc Mar 12, 2024
5df5b68
[DBC] Load Vehicle.dbc
BAndysc Mar 12, 2024
63fee6c
[SQL] Support for dumping tables in socket based connections
BAndysc Mar 12, 2024
9c43842
[DBC] Load Vehicle.dbc
BAndysc Mar 12, 2024
afd6ff6
[Parameters] VehicleSeatIdParameter
BAndysc Mar 13, 2024
a2491a7
[Tests] Fix test
BAndysc Mar 14, 2024
89f6d4f
[UX] Enable dock's tool floating windows
BAndysc Mar 12, 2024
76bb4f0
[SmartScript] AddAction context menu
BAndysc Mar 20, 2024
e2cbbd6
Merge remote-tracking branch 'origin/dev'
BAndysc Mar 20, 2024
c9c1a17
[SmartScript] Fix context menu
BAndysc Mar 20, 2024
027c11f
[SmartScript] Fix rendering parameters
BAndysc Mar 21, 2024
190db08
[UX] Fix a visual bug in parameters view
BAndysc Mar 21, 2024
02d9052
[UX] Fix small rendering bug in smart script view
BAndysc Mar 21, 2024
a8a942d
[CI] Web target fix
BAndysc Mar 24, 2024
02eba29
avalonia version bump
BAndysc Mar 21, 2024
a32a9ff
Fix stackoverflow in error reporting
BAndysc Apr 8, 2024
0ffbe5c
Fix errors reporting
BAndysc Apr 8, 2024
94ab300
[SQL Workbench] Fixed tables view for databases with apostrophes (') …
BAndysc Apr 8, 2024
028bbbf
[Errors] Unsupported tables won't be reported as errors
BAndysc Apr 8, 2024
62403b6
Update actions.json
BAndysc Apr 15, 2024
16ffd9b
Update actions_groups.json
BAndysc Apr 15, 2024
0819f7d
Bump SixLabors.ImageSharp from 3.1.3 to 3.1.4 in /WDE.MpqReader
dependabot[bot] Apr 15, 2024
618db17
Bump SixLabors.ImageSharp in /Rendering/TheAvaloniaOpenGL
dependabot[bot] Apr 15, 2024
5d8b410
Update deps
BAndysc Apr 17, 2024
0ee6608
Build fix
BAndysc Apr 19, 2024
0efdf4e
[SmartScript] Awaitable actions
BAndysc Apr 19, 2024
b0a9bc6
[UX] Fix dialog windows not being moveable
BAndysc Apr 22, 2024
d49c1c9
[UX] Play quick start items animation only when resizing the window
BAndysc Apr 22, 2024
3480704
[UX] Disable documents floating, as it is not well supported
BAndysc Apr 22, 2024
3d11a69
[UX] Dock tool tabs will now wrap
BAndysc Apr 22, 2024
e9d8d8d
[Deps] Update dependencies
BAndysc Apr 22, 2024
df84998
[UX] Fix focusing issue in smart script editing window
BAndysc Apr 22, 2024
4200cce
[UX] Fixed restoring saved dock layout
BAndysc Apr 22, 2024
1160021
[UX] Fix visual bug when editing a template table
BAndysc Apr 22, 2024
3f6c3bd
Chain editor
BAndysc Apr 17, 2024
13e2c18
[UX] Fixed loading races and classes icons on Windows
BAndysc Apr 23, 2024
59a3592
[UX] Fix text selection in table editors
BAndysc Apr 23, 2024
de2a3fb
[UX] Restore focus after closing dialog windows
BAndysc Apr 23, 2024
e1022ab
[UX] Copy all
BAndysc Apr 24, 2024
90c2078
[Shell] Report only critical errors
BAndysc Apr 24, 2024
6a11758
[UX] Races as long
BAndysc Apr 24, 2024
5bc16d5
[Code Completions] Fix code completions in some cases
BAndysc Apr 24, 2024
dd199f2
[Quest Editor] Allow loading previously unloaded quest
BAndysc Apr 24, 2024
993f9c6
[Quest Editor] Fix null exception when closing the editor
BAndysc Apr 24, 2024
8843085
[Shell] Ignore Socket Exceptions
BAndysc Apr 24, 2024
1e4f88e
Fix 'ArgumentOutOfRangeException: Index was out of range.' in Tables …
BAndysc Apr 24, 2024
e2ef7d0
[DBC] Add 0 area to ZoneAreaParameter
BAndysc Apr 24, 2024
194a3e7
[Quest Editor] Add message box when errors occurs
BAndysc Apr 24, 2024
efcaf7a
Added Tauri Shoot context menu option for Quest Chain Editor
Apr 25, 2024
6a10f69
[Table Editors] Fix loading PrimaryKey when only TablePrimaryKeyColum…
BAndysc Apr 25, 2024
1f8e458
[Quest Editor] Navigate to Quest
BAndysc Apr 25, 2024
bd96415
[UX] Fix ToolBarItemsControl style
BAndysc Apr 26, 2024
5216ecb
[3D] Save Stormlib/WoWDatabaseEditor open type
BAndysc Apr 26, 2024
675b3e5
[Tables] creature_static_flags_override added
BAndysc Apr 30, 2024
38d61f7
[Solutions] Async solution name generation
BAndysc Apr 30, 2024
848b259
[SQL Workbench] Database import tool
BAndysc Apr 30, 2024
0266817
[CI] Fix
BAndysc Apr 30, 2024
be07ac9
[Tables] Pasting into a cell will now properly paste
BAndysc Apr 30, 2024
62eeb18
[Database] GetQuestTemplatesBySortIdAsync
BAndysc May 1, 2024
ef8e052
[Quest Editor] Load by Zone Sort Id
BAndysc May 1, 2024
e047259
[UX] ModernMenuPanel
BAndysc May 1, 2024
6ace51e
[Quest Editor] Improved grouped quest handling logic
BAndysc May 2, 2024
8cf12d1
[Tables] Fix combo box picker for string columns
BAndysc May 3, 2024
9e1fb77
[DBC] Renames
BAndysc May 3, 2024
5604ddb
[UX] Changed format of number parameters in combobox in table editors
BAndysc May 3, 2024
c269b81
[DBC] Change EquippedItemClass from uint to int
BAndysc May 3, 2024
f79ca5d
[Code] Added DatabaseEntity parameter to IDatabaseTableCommand
BAndysc May 7, 2024
41ddff7
[UX] Fixed an annoying bug where typing a letter into a number field …
BAndysc May 7, 2024
6b74ea1
[UX] Fix a focus bug
BAndysc May 7, 2024
fd90aa1
[Tables] Custom Query Generators
BAndysc May 7, 2024
6820f2c
[Client data] Load WMO/M2 unique Id
BAndysc May 7, 2024
ddba2b3
Fix crash with Windows10 Dark theme
BAndysc May 7, 2024
1006f8f
[Quest Editor] Remove ISolutionItemRemoteCommandProvider
BAndysc May 8, 2024
d0d64ff
[UX] Fixed parameter picker button in some cases
BAndysc May 8, 2024
edb442a
[Tables] Update code for handling foreign tables
BAndysc May 9, 2024
1513bdb
Build fix
BAndysc May 10, 2024
3d46fd1
[SmartScript] Added option to synchronize parameters
BAndysc May 10, 2024
4f5c20f
[DBC] Load PlayerCondition
BAndysc May 10, 2024
7f83f2a
[Tables] Fix copy-paste rows in table editors
BAndysc May 13, 2024
0b2aa76
The CONDITION_REPUTATION_RANK value in conditions should be multi-sel…
fangshun2004 May 13, 2024
7ccf52d
[Database] CI fix
BAndysc May 13, 2024
d8e26c7
Merge remote-tracking branch 'origin/master'
BAndysc May 13, 2024
71d7b16
[Parser] Experimental parse from stdin
BAndysc May 14, 2024
ad03280
[Tables] Refactored handling undo-redo, please report in case there a…
BAndysc May 14, 2024
131e584
Merge branch 'master' into dev_avalonia11
BAndysc May 14, 2024
99474dc
[UX] Trim long tab names
BAndysc May 16, 2024
10693f9
[DBC] Load ItemRandomProperties/ItemRandomSuffix
BAndysc May 16, 2024
2e422c4
[UX] Columns can be hidden in table editors
BAndysc May 16, 2024
28adf82
[UX] Better collapsing long names in SmartScript
BAndysc May 17, 2024
5f2b5d6
[UX] Move number to the left in ConversationParameter
BAndysc May 17, 2024
91c4fa1
[Parameters] Correct updating parameter when context changes
BAndysc May 17, 2024
45ceb79
Remove unnecessary warning
May 28, 2024
e206769
[SmartScript] Flags
BAndysc Jun 3, 2024
0769ed7
[Tables] Keep saved state after ordering tables
BAndysc Jun 3, 2024
4844b9a
[UI] Fix focus when an element becomes enabled
BAndysc Jun 3, 2024
03012ba
[Table editors] Improve redoing in single row tables
BAndysc Jun 5, 2024
9982337
[UX] Fix an exception 'Collection was modified; enumeration operation…
BAndysc Jun 5, 2024
e52cfc1
[Parser] Update parser
BAndysc Jun 6, 2024
d8576d3
[SOAP] Show error when remote reload command fails
BAndysc Jun 6, 2024
24547ef
[SOAP] Show error when remote reload command fails
BAndysc Jun 10, 2024
44faa85
[SOAP] Show error when remote reload command fails
BAndysc Jun 10, 2024
bb2c4d7
[UX] Fixed crash when the user pressed Tab few times while editing a …
BAndysc Jun 10, 2024
d9172e1
[SmartScript] Fix copy coords for actions using target_position descr…
BAndysc Jun 12, 2024
d027fdb
[Tables] Changed some structures
BAndysc Jun 17, 2024
36414a7
Fix tests
BAndysc Jun 17, 2024
58a1454
[CI] Build fix
BAndysc Jun 17, 2024
29eaa11
[Updater] Correct old files condition
BAndysc Jun 17, 2024
6d8e379
Changed SMART_ACTION_JUMP_TO_POS_MASTER (97):
BAndysc Jun 17, 2024
d0668f9
Changed SMART_EVENT_RECEIVE_HEAL (53):
BAndysc Jun 17, 2024
54284d9
Changed SMART_EVENT_RECEIVE_HEAL (53):
BAndysc Jun 17, 2024
0889de4
Changed event_groups.json
BAndysc Jun 17, 2024
4e3dff3
[CI] Added .gitattributes to normalize json line endings
BAndysc Jun 17, 2024
899235a
[Updater] Wait for a key press before closing
BAndysc Jun 17, 2024
714e09b
[UX] Fix save/open dialog extensions
BAndysc Jun 17, 2024
3d2f4a9
[Tables] Fix hang on Windows when importing a table
BAndysc Jun 17, 2024
143cc1f
[Table] Fix editors
BAndysc Jun 18, 2024
78a9368
[Updater] Added command line option --skip-update
BAndysc Jun 18, 2024
c3d3e2d
[UX] Fix copy smart script id
BAndysc Jun 18, 2024
e448ec8
[SmartScript] ISmartScriptDefinitionEditorService
BAndysc Jun 18, 2024
e33bc0f
[SmartScript] Negate Value context menu
BAndysc Jun 18, 2024
616ccf4
[UX] Quick access to the table definition editor
BAndysc Jun 18, 2024
4497fcc
[SmartScript] Dynamic reload smart script definition on json file change
BAndysc Jun 18, 2024
66be1d5
[SmartScript] Added flags to SmartContextMenuCopyParameter
BAndysc Jun 18, 2024
3a181c1
Update PacketParserService.cs
BAndysc Jun 22, 2024
a763437
[Tables] Dynamic table reload support
BAndysc Jun 25, 2024
29f25e2
[UX] Open sniffs by drag and drop to the main window
BAndysc Jun 25, 2024
6df1311
[Updater] Open the editor even if there is some old file conflict
BAndysc Jun 25, 2024
9152272
[UX] Fixed missing icons in few places
BAndysc Jun 25, 2024
5e0b135
[Parser] Modified parser code for up to x20 speed up!
BAndysc Jun 27, 2024
a5efbcf
[UX] Test a workaround for activating a window
BAndysc Jun 27, 2024
1484dc3
[Code] Clean up
BAndysc Jun 28, 2024
26f1cb6
[Parser] Find in packets improvements
BAndysc Jul 1, 2024
96fd10d
[Database] Load QuestTemplate.Flags
BAndysc Jul 1, 2024
06729dc
[Find anywhere] Fixed regression in Find Anywhere when searching in t…
BAndysc Jul 1, 2024
fc9fdee
[UX] Fix focus in Smart Script action/event/target picker after chang…
BAndysc Jul 1, 2024
c68891b
[UX] Fix UX in rare cases
BAndysc Jul 2, 2024
e654719
[UX] Fix UX in rare cases
BAndysc Jul 2, 2024
411f306
Missing evade Value added (#236)
Krutok Jul 11, 2024
ac27890
Fix azerothcore db error (#235)
fangshun2004 Jul 12, 2024
cf278ac
Changed naming of CONDITION_OBJECT_ENTRY_GUID_LEGACY and adjusted typ…
mdX7 Jul 17, 2024
ee5efd7
[Deps] Update SixLabors.ImageSharp to 3.1.5
BAndysc Jul 24, 2024
0e35bc0
Ignore Duplicate entries for some params
Jul 24, 2024
80c32f1
[Loot] Changed the way Skinning loot loading works
BAndysc Aug 7, 2024
be87801
[Loot editor] Preserver original entry
BAndysc Aug 16, 2024
eb3da69
Update deps
BAndysc Aug 23, 2024
00763dd
Merge branch 'dev_avalonia11'
BAndysc Aug 23, 2024
69c7b41
Update to The War Within
BAndysc Aug 23, 2024
a40c1b1
[Loot] Fix bug in loot
BAndysc Aug 29, 2024
83a44a7
Avalonia 11.1.3
BAndysc Sep 6, 2024
960f938
[UX] Global Search UI
BAndysc Sep 8, 2024
ac3a18a
[SmartScript] Fix query generation
BAndysc Sep 8, 2024
f4ae2fe
[SmartScript] Fix parameter count
BAndysc Sep 9, 2024
9e04bec
[Deps] Remove Dock.Model.Avalonia
BAndysc Sep 9, 2024
b34a0d0
[Conditions] Update ConditionType list (#245)
meji46 Sep 9, 2024
1b03845
Alternative build script
BAndysc Sep 9, 2024
10bfea6
Fix crash
BAndysc Sep 9, 2024
2b04642
[Conditions] Update spell_implicit_target for master (#246)
meji46 Sep 11, 2024
f72a1e2
[DBC] Load phases
BAndysc Sep 24, 2024
44aba84
[SQL Workbench] Fix connecting when server is down
BAndysc Sep 24, 2024
6eeb298
[Loot] Reference loot fix
BAndysc Oct 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
###############################################################################
* text=auto

# Jsons should always be normalized to LF
*.json text eol=lf

###############################################################################
# Set default behavior for command prompt diff.
#
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ artifacts/
*_i.h
*.ilk
*.meta
*.obj
#*.obj
*.pch
*.pdb
*.pgc
Expand Down Expand Up @@ -261,4 +261,4 @@ __pycache__/
*.pyc

# dbc
.DS_Store
.DS_Store
24 changes: 24 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[submodule "Dock"]
path = Dock
url = https://github.com/BAndysc/Dock.git
[submodule "AvaloniaEdit"]
path = AvaloniaEdit
url = https://github.com/BAndysc/AvaloniaEdit
[submodule "WoWPacketParser"]
path = WoWPacketParser
url = https://github.com/BAndysc/WoWPacketParser
[submodule "Prism.Avalonia"]
path = Prism.Avalonia
url = https://github.com/BAndysc/Prism.Avalonia
[submodule "DBCD"]
path = DBCD
url = https://github.com/BAndysc/DBCD
[submodule "Modules/nodify"]
path = Libraries/nodify
url = https://github.com/BAndysc/nodify-avalonia
[submodule "Modules/automatic-graph-layout"]
path = Libraries/automatic-graph-layout
url = https://github.com/microsoft/automatic-graph-layout
[submodule "Libraries/DiffPlex.Avalonia"]
path = Libraries/DiffPlex.Avalonia
url = https://github.com/BAndysc/DiffPlex.Avalonia.git
6 changes: 6 additions & 0 deletions AntlrSupport.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>

</PropertyGroup>
</Project>
26 changes: 26 additions & 0 deletions Avalonia.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AvaloniaVersion>11.1.3-cibuild0051668-beta</AvaloniaVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="$(AvaloniaVersion)" />
<PackageReference Include="Avalonia.Skia" Version="$(AvaloniaVersion)" />
<PackageReference Include="Avalonia.Controls.ItemsRepeater" Version="11.1.0-beta1" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="$(AvaloniaVersion)"/>
<PackageReference Include="Avalonia.ReactiveUI" Version="$(AvaloniaVersion)" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="$(AvaloniaVersion)" />
<PackageReference Include="Avalonia.Xaml.Behaviors" Version="11.1.0-beta1" />
<PackageReference Include="Projektanker.Icons.Avalonia" Version="9.1.1" />
<PackageReference Include="Projektanker.Icons.Avalonia.MaterialDesign" Version="9.1.1" />
<ProjectReference Include="$(MSBuildThisFileDirectory)\Prism.Avalonia\src\Prism.Avalonia\Prism.Avalonia.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Update="**\*.xaml.cs">
<DependentUpon>%(Filename)</DependentUpon>
</Compile>
<AvaloniaResource Include="**\*.xaml">
<SubType>Designer</SubType>
</AvaloniaResource>
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions AvaloniaEdit
Submodule AvaloniaEdit added at afdbc5
22 changes: 22 additions & 0 deletions AvaloniaStyles.Desktop/AvaloniaStyles.Desktop.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU</Platforms>
<Nullable>enable</Nullable>
<WarningsAsErrors>$(WarningsAsErrors),nullable</WarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\AvaloniaStyles\AvaloniaStyles.csproj" />
</ItemGroup>

<Import Project="..\Module.props" />
<Import Project="..\Avalonia.props" />

<ItemGroup>
<PackageReference Include="Avalonia.Desktop" Version="$(AvaloniaVersion)"/>
</ItemGroup>
</Project>
16 changes: 16 additions & 0 deletions AvaloniaStyles.Desktop/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Avalonia;

namespace AvaloniaStyles.Desktop;

public class Program
{
static void Main(string[] args)
=> BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);

// App configuration, used by the entry point and previewer
static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.WithInterFont()
.LogToTrace();
}
6 changes: 5 additions & 1 deletion AvaloniaStyles/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
xmlns:avaloniaStyles="clr-namespace:AvaloniaStyles"
x:Class="AvaloniaStyles.App">
<Application.Styles>
<avaloniaStyles:SystemTheme Mode="Windows10Dark" />
<avaloniaStyles:SystemTheme Mode="LightWindows11" />
</Application.Styles>
<Application.Resources>
<ResourceDictionary>
</ResourceDictionary>
</Application.Resources>
</Application>
20 changes: 7 additions & 13 deletions AvaloniaStyles/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,14 @@ public override void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
desktop.MainWindow = new MainWindow();
else if (ApplicationLifetime is ISingleViewApplicationLifetime singleViewPlatform)
{
singleViewPlatform.MainView = new MainView
{
DataContext = new DemoDataContext()
};
}
base.OnFrameworkInitializationCompleted();
}

static void Main(string[] args)
=> BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);

// App configuration, used by the entry point and previewer
static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.With(new Win32PlatformOptions
{
OverlayPopups = true,
})
.UsePlatformDetect()
.LogToTrace();
}
}
35 changes: 24 additions & 11 deletions AvaloniaStyles/AvaloniaStyles.csproj
Original file line number Diff line number Diff line change
@@ -1,24 +1,37 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<Configurations>Debug;Release;DebugAvalonia</Configurations>
<OutputType>Library</OutputType>
<TargetFramework>net8.0</TargetFramework>
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU</Platforms>
<Nullable>enable</Nullable>
<WarningsAsErrors>$(WarningsAsErrors),nullable</WarningsAsErrors>
</PropertyGroup>
<PropertyGroup>
<OutputPath>..\bin\$(Configuration)\</OutputPath>
<SelfContained>true</SelfContained>
</PropertyGroup>

<Import Project="..\Module.props" />

<Import Project="..\Avalonia.props" />
<ItemGroup>
<PackageReference Include="Avalonia" Version="0.10.0" />
<PackageReference Include="Avalonia.Controls.DataGrid" Version="0.10.0" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.0" />
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.0" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.0" />
<PackageReference Include="Avalonia.Xaml.Behaviors" Version="0.10.0" />
<PackageReference Include="Avalonia.Controls.DataGrid" Version="$(AvaloniaVersion)" />
<PackageReference Include="Avalonia.Diagnostics" Version="$(AvaloniaVersion)" />
<PackageReference Include="FuzzySharp" Version="2.0.2" />
</ItemGroup>
<ItemGroup>
<AvaloniaResource Include="**\*.xaml" />
<AvaloniaResource Include="Styles\Assets\Lato\*.ttf" />
<None Remove="Fonts\Symbols.ttf" />
<AvaloniaResource Include="Fonts\Symbols.ttf" />
<AvaloniaResource Remove="Styles\BigSur\**" />
<AvaloniaResource Remove="Styles\Catalina\**" />
<AvaloniaResource Remove="Styles\MacOs\**" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AvaloniaEdit\src\AvaloniaEdit\AvaloniaEdit.csproj" />
<ProjectReference Include="..\Dock\src\Dock.Avalonia\Dock.Avalonia.csproj" />
<ProjectReference Include="..\WDE.MVVM\WDE.MVVM.csproj" />
<ProjectReference Include="..\WoWDatabaseEditor.Common\WDE.Common\WDE.Common.csproj" />
</ItemGroup>
</Project>
52 changes: 52 additions & 0 deletions AvaloniaStyles/Behaviours/OpenContextMenuOnClickBehavior.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Interactivity;
using Avalonia.Xaml.Interactivity;

namespace AvaloniaStyles.Behaviours;

public class OpenContextMenuOnClickBehavior : Behavior<Button>
{
protected override void OnAttached()
{
base.OnAttached();
if (AssociatedObject != null)
AssociatedObject.Click += AssociatedObject_PointerPressed;
}

private void AssociatedObject_PointerPressed(object? sender, RoutedEventArgs routedEventArgs)
{
AssociatedObject?.ContextMenu?.Open();
}

protected override void OnDetaching()
{
if (AssociatedObject != null)
AssociatedObject.Click -= AssociatedObject_PointerPressed;
base.OnDetaching();
}
}


public class OpenContextMenuOnLeftMouseButtonBehavior : Behavior<Control>
{
protected override void OnAttached()
{
base.OnAttached();
if (AssociatedObject != null)
AssociatedObject.PointerPressed += AssociatedObject_PointerPressed;
}

private void AssociatedObject_PointerPressed(object? sender, PointerPressedEventArgs routedEventArgs)
{
AssociatedObject?.ContextMenu?.Open();
AssociatedObject?.ContextFlyout?.ShowAt(AssociatedObject!);
}

protected override void OnDetaching()
{
if (AssociatedObject != null)
AssociatedObject.PointerPressed -= AssociatedObject_PointerPressed;
base.OnDetaching();
}
}
55 changes: 55 additions & 0 deletions AvaloniaStyles/Controls/AccentSolidColorBrush.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
using Avalonia;
using Avalonia.Media;
using Avalonia.Metadata;
using AvaloniaStyles.Utils;
using HslColor = AvaloniaStyles.Utils.HslColor;

namespace AvaloniaStyles.Controls;

public class Accent
{
public static readonly StyledProperty<Color> BaseColorProperty =
AvaloniaProperty.RegisterAttached<Accent, SolidColorBrush, Color>("BaseColor");

public static readonly StyledProperty<HslDiff> HueProperty =
AvaloniaProperty.RegisterAttached<Accent, SolidColorBrush, HslDiff>("Hue");

static Accent()
{
HueProperty.Changed.AddClassHandler<SolidColorBrush>((brush, e) =>
{
Color baseColor;
if (!brush.IsSet(BaseColorProperty))
{
baseColor = brush.Color;
SetBaseColor(brush, baseColor);
}
else
{
baseColor = brush.GetValue(BaseColorProperty);
}
var hsl = HslColor.FromRgba(baseColor).Scale(e.NewValue as HslDiff);
brush.Color = hsl.ToRgba();
});
}

public static Color GetBaseColor(AvaloniaObject obj)
{
return obj.GetValue(BaseColorProperty);
}

public static void SetBaseColor(AvaloniaObject obj, Color value)
{
obj.SetValue(BaseColorProperty, value);
}

public static HslDiff GetHue(AvaloniaObject obj)
{
return obj.GetValue(HueProperty);
}

public static void SetHue(AvaloniaObject obj, HslDiff value)
{
obj.SetValue(HueProperty, value);
}
}
41 changes: 41 additions & 0 deletions AvaloniaStyles/Controls/BalloonPopup.axaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Design.PreviewWith>
<BalloonPopup Content="Abcdefg" ShowTail="True" />
</Design.PreviewWith>

<Style Selector="BalloonPopup">
<Setter Property="ClipToBounds" Value="False" />
<Setter Property="Template">
<ControlTemplate>
<Panel Name="PART_RootPanel">
<Border BoxShadow="0 5 10 2 #40000000" Background="{DynamicResource TeachingTipBackground}"
BorderThickness="1"
ClipToBounds="False"
Margin="10,-1,10,10"
CornerRadius="{DynamicResource ControlCornerRadius}"
BorderBrush="{DynamicResource TeachingTipBorderBrush}" Padding="10">
<ContentPresenter x:Name="PART_ContentPresenter"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" />
</Border>
<Path DockPanel.Dock="Top"
IsVisible="{TemplateBinding ShowTail}"
Fill="{DynamicResource TeachingTipBackground}"
HorizontalAlignment="{TemplateBinding TailAlignment}"
VerticalAlignment="Top"
Stroke="{DynamicResource TeachingTipBorderBrush}"
StrokeThickness="1"
Data="M0,10 L10,0 L20,10"
Margin="20,-10,20,0" />
<!-- cover the tail -->
</Panel>
</ControlTemplate>
</Setter>
</Style>
<Style Selector="BalloonPopup:showtail /template/ Panel#PART_RootPanel">
<Setter Property="Margin" Value="0,10,0,0"/> <!-- space for the tail -->
</Style>
</Styles>
Loading