Commit Graph

528 Commits

Author SHA1 Message Date
in1tiate
dad625ccd4
Explicitly show widgets when positioning them (#1040) 2024-08-25 17:54:32 +02:00
Salanto
50204ec2e2
[Bugfix] Fix slides not applying the X offset during slide position calculaiton (#1038)
* Make slides correctly respect X offset

* Bump to RC4 cause I am cute like that
2024-08-24 15:33:49 +02:00
Salanto
e82726ba5b
Attorney Online 2.11 Release Candidate 1 (#1026)
* Version bump and minor fixes

* Remove unecessary headers

Thanks QtCreator
2024-07-21 18:54:52 +02:00
Leifa
23077d0291
Resize mode patch (#1019)
* Fix transformation mode for layers

Resolve #997

* always use smooth transform resampling for stretched images

* Used fixed frame size

* Implemented resize mode changes

Resolve #999

* Added alias to pixel resize mode

* Added user option

---------

Co-authored-by: in1tiate <32779090+in1tiate@users.noreply.github.com>
2024-07-13 15:31:51 +02:00
Leifa
d05636571e
Merge pull request #1016 from AttorneyOnline/restore-window-position
[Feature] Add support for windows position restore
2024-07-12 14:06:27 +02:00
Salanto
e34b2534ed Restore position in AOApplication 2024-07-12 13:23:40 +02:00
Salanto
fb64ca386c
Add playerlist widget element (#996)
* Commit

* Boyfailure code commit

* Cooking code spaghetti

* Accidental overwrite recursive function call hell

* Implemented player list

* Add partial moderator widget

Sleepy time! Hee-Hoo!

* Moderator Dialog - Step 1 - WIP

* Appease the clang gods

* Clang appeasement policy

* *sacrifices goat to clang*

* Added player report, reworked implementation, ...

* Added player-specific report
* Reworked implementation
  * No longer uses JSON.
* Removed preset loader.

---------

Co-authored-by: TrickyLeifa <date.epoch@gmail.com>
Co-authored-by: Leifa <26681464+TrickyLeifa@users.noreply.github.com>
2024-07-12 11:48:01 +02:00
Salanto
8fac2ada62 Harden screen position check against missing monitors 2024-07-12 00:06:21 +02:00
Salanto
b882917af8
Merge branch 'master' into restore-window-position 2024-07-11 20:40:36 +02:00
Leifa
c745d0a1b7
QApplication less! (#1017) 2024-07-11 20:40:21 +02:00
Salanto
9002d1201d *blood sacrifice for clang* 2024-07-11 18:00:59 +02:00
Salanto
d9aada2900 Add Courtroom position restore 2024-07-11 15:52:34 +02:00
Leifa
662d4781d2
Remove editable side dropdown (#1009)
Resolve #985

Co-authored-by: stonedDiscord <Tukz@gmx.de>
2024-07-09 12:53:19 +02:00
Salanto
074490e347
Merge branch 'master' into fix-areaswitch-bs 2024-06-25 11:35:34 +02:00
in1tiate
5be0860278
Fix color-related UI not honoring chatbox setting (#984)
Co-authored-by: Salanto <62221668+Salanto@users.noreply.github.com>
2024-06-25 11:34:23 +02:00
Salanto
6738ba6c5e
Merge branch 'master' into fix-areaswitch-bs 2024-06-25 11:28:31 +02:00
Leifa
8004477d0c
Fix positions not being listed (#990) 2024-06-23 20:21:28 +02:00
Leifa
4043d97257
Fix background scaling and centering (#982)
Fix #978
2024-06-21 22:00:28 -05:00
in1tiate
6c6e46f6fc
Explicitly set sane line spacing (#981)
* Explicitly set sane line spacing

* Update naming to reflect setting set by Format + fix memory leak

Address memory leak

---------

Co-authored-by: Salanto <62221668+Salanto@users.noreply.github.com>
2024-06-18 19:38:13 +02:00
in1tiate
9eb9b6f965 remove accidentally included debug calls 2024-06-11 18:13:17 -05:00
in1tiate
8ca0acc5f4 hide charlayers on area switch background changes
only applicable on servers which send displayable background updates on area switch
2024-06-11 18:10:22 -05:00
TrickyLeifa
a714bacd1a Added screen slide timer
* Added screen slide timer
  * Added so that the animation becomes interruptible.
2024-06-03 18:11:17 +02:00
in1tiate
5bc82b0d4f restore accurate slide bookending 2024-05-31 10:35:58 -05:00
in1tiate
37f103e2c2 restore old bg fallback behavior 2024-05-30 15:13:35 -05:00
in1tiate
83715f4276 fix effects continuing to be displayed when they shouldn't 2024-05-27 10:33:06 -05:00
in1tiate
da3b872beb just hide the layer in courtroom.cpp 2024-05-27 10:22:01 -05:00
in1tiate
f09ff7fc51 fix first-person / narrator mode 2024-05-26 13:39:14 -05:00
in1tiate
b9df908113 fix pair layer not being hidden correctly 2024-05-26 13:30:23 -05:00
TrickyLeifa
eb024cb931 Renamed pos_center to rect from Background/design.ini 2024-05-23 16:10:45 +02:00
TrickyLeifa
29284c0b21 Removed theme submodule, ...
* Removed theme submodule.
  * This should be handled by the CI.
* Fixed effects not disappearing when they should (cull / repeat)
2024-05-23 00:02:07 +02:00
TrickyLeifa
d135bbc511 Fixed emote synchronization, ...
* Fixed emote synchronization
  * Still requires identical frame count. Will still cause freeze as it syncs.
* Fixed frame effects not working on idle and talk emotes.
* Characters are now repositioned after background sliding is over.
2024-05-22 23:30:31 +02:00
TrickyLeifa
695d51dbfe Complete AOLayer reimplementation, ...
* Complete AOLayer reimplementation
* Reimplemented sliding as well.
2024-05-22 22:10:29 +02:00
in1tiate
137a2d3a04 speedline thing 2024-05-20 12:46:35 -05:00
in1tiate
2c696f2cd1 other random fixes
fix evidence presenting sfx playing at literally 100x intended volume
fix "def2" etc wrong evidence icon position, remove inaccurate evidence positions
2024-05-20 12:32:35 -05:00
in1tiate
e2b47afd91 stop filling the log with raw net traffic 2024-05-20 12:03:36 -05:00
in1tiate
5d90088b5c clang-format pass 2024-05-20 09:12:47 -05:00
in1tiate
a23614059b add missing code from rebase 2024-05-20 09:03:16 -05:00
in1tiate
6ff71de06b fix opening bracket 2024-05-20 08:49:26 -05:00
in1tiate
adf32f4727 Initial slide rebase commit 2024-05-20 08:47:27 -05:00
TrickyLeifa
657145035c Reimplemented unit tests, ...
* Reimplemented unit tests and simplified addition of new tests
* Minimal support of Qt is now 5.15
2024-05-18 00:48:55 +02:00
TrickyLeifa
b306929311 Resolved merge conflicts.
This comment format is just tiring for the eyes. Imagine being on 1080p and not being able to read more than 5 method definitions due to comments.
2024-05-17 19:44:37 +02:00
TrickyLeifa
fefaad5394 Merge branch 'master' into kaleidoscope 2024-05-17 19:19:04 +02:00
TrickyLeifa
1ef96383c8 Lightly reworked NetworkManager, ...
* Lightly reworked `NetworkManager`
* Added new modules to handle various connection types.
  * TCP
  * WebSocket
* Added general string splitter alias based on Qt version.
* Replaced `lobby_constructed` and `courtroom_constructed`
* Refactored and partially reimplemented the following classes:
  * `AOBlipPlayer`
  * `AOEmotePreview`
  * `AOMusicPlayer`
  * `AOSfxPlayer`
  * `AOTextArea`
2024-05-17 19:04:57 +02:00
TrickyLeifa
39e4354b1d Reimplemented favorite server widget, ...
* Reworked favorite server widget
* Renamed `server_type` to `ServerInfo`
* Renamed `connection_type` to `ServerConnectionType`
* Refactored `AOCharButton`
* Reimplemented `AOButton`
* Partially reimplemented `AOEmoteButton`
* Refactored `AOEvidenceButton`
2024-05-16 03:09:21 +02:00
Cerapter
4fb61b7afd
Lift out most server-related data into its own class (#955)
* Lift out most server-related data into its own class

* Fix missing negation in the auth packet support check

* Update `get_feature(BASE_FEATURE_SET)`'s documentation

* Make the version numbers public

* Add support for custom blips

---------

Co-authored-by: in1tiate <32779090+in1tiate@users.noreply.github.com>
2024-05-15 10:19:03 -05:00
TrickyLeifa
a0cee58c04 Merge branch 'master' into kaleidoscope 2024-05-15 00:23:46 +02:00
TrickyLeifa
c9f52b7223 Ported to CMake, ...
* Ported the project to CMake
  * Android and Mac support dropped for the time
being.
  * Tests, BASS and Discord-RPC are now options
* Restructured and reformated the project.
  * Merged `include` and `src`
  * Renamed `resource` to `data`
  * Renamed various files
  * External libraries headers are no longer included in `src`
  * Replaced header guards with #pragma once
  * Multiple refactors (keywords, headers)
  * Added Qt6 compatibility
* Removed various unused functions and headers
* Reworked AOPacket
  * When content is passed to AOPacket, it should be ensured that the content is already decoded.
  * Encoding/decoding are now static methods.
* Fixed various memory leaks
* Removed animation code for AOImage
  * AOImage is always using static images
* Simplified ChatLogPiece
2024-05-15 00:04:16 +02:00
in1tiate
c9eabf35da
Add [Options] override for blips and shownames for parity with 2.5 (#953)
* split get_blips into two functions

Because otherwise it would always return only what was read from char.ini, and we want it to be able to read our custom QLineEdit too, right?

* include new function, rewrite description

* check for custom blips support in packet

* add custom blips enabled bool

* increase MS_MAXIMUM, add custom blips QLineEdit

* add BLIPNAME to chat message

* introducing custom blips

* introducing custom blips I said

* unfold if

* unfold other if

* retool custom blips code, add ini parser

* remove extraneous debug calls

* fix incorrect default value on get_showname

* restructure ini format

* fix parser again

---------

Co-authored-by: Lernos <lernoskey@gmail.com>
Co-authored-by: stonedDiscord <Tukz@gmx.de>
2024-05-14 18:02:32 +02:00
in1tiate
0142ed57c3
Ignore pair offset when zooming (#940) 2024-03-09 17:47:05 +01:00
in1tiate
b48ca2455a
Add the ability for shownames to be outlined (#939)
* showname text outline, partial messagebox outline code

* your honor i plead oopsie daisies

* Focus down code, add config hookups

* remove extraneous qDebug calls
2024-03-03 20:26:39 -06:00