28 Commits

Author SHA1 Message Date
yvt
b9a5d80f7b
Use Handle::New to construct T <: RefCountedObject
Unless `T::T(Args...)` is inaccessible from `Handle::New`, in which case
`Handle::Handle{new T(args...), false}` should be used.
2019-07-20 17:01:04 +09:00
yvt
60fd3191c5
Remove Handle::operator T*(), discouraging conversion to raw pointers
It was replaced by `Handle::GetPointerOrNull()`. Every use of
`GetPointerOrNull` should be reviewed. Some of them were already removed.
2019-07-20 15:47:42 +09:00
yvt
e57e9655dd
Implement console-related methods on MainScreen 2019-07-14 18:32:42 +09:00
yvt
b02ad53109 Add View::RunFrameLate
`IRenderer::{FrameDone, Flip}` are now called in `RunFrameLate` instead.
This makes it possible to create a `View` wrapping another `View` to
insert a new 2D drawing pass, which is necessary to render the system
console.
2019-07-14 00:29:36 +09:00
yvt
228f1b1ee5 Remove C++ definitions of some config variables
The following config variables are no longer accessed by the C++ code
directly:

- cg_lastQuickConnectHost
- cg_playerName (not to be confused with cg_playerNames)

The AngelScript code still uses them, though.
2017-09-11 21:03:18 +09:00
yvt
7d0d8e3704 Create Weapon instances based on the current GameProperties, not a cvar 2017-09-11 20:59:39 +09:00
yvt
a7b9909b2e Refactoring 2017-01-05 03:03:39 +09:00
yvt
d505bfae91 Expose “FontManager” to the scripting environment 2016-12-16 05:05:23 +09:00
YVT
2d0ae3b817 FreeType2 font renderer (#484)
* Backport ngspades’s FreeType2 font renderer

* Change system fonts

* Fix SWImage::Update

* Preliminary custom TTF/OTF font support

* Fix font rendering

* Adjust design

* Update devpak

* Fix to compile on Linux

* Update .travis.yml

* Update external libraries

* Update .travis.yml

* Attempt to fix Travis CI build

* Add missing sudo to travis.yml

* Nevermind the changes, it didn't work

* Update .travis.yml

* Update .travis.yml and CMakeLists.txt
2016-12-11 23:18:16 +09:00
Tomoaki Kawada
2eb9e35c65 Apply clang-format to all non-external source files 2016-12-03 18:23:47 +09:00
Tomoaki Kawada
6a7af96daf Refactor setting variables 2016-11-19 21:27:13 +09:00
Tomoaki Kawada
81e2deedce Fix #394 2016-11-11 22:25:41 +09:00
yvt
7072e15b63 Mask write to configs from certain scripts 2015-01-24 12:44:57 +09:00
yvt
838805d062 Error occurred in the game client is now written to SystemMessages.log 2014-03-15 21:56:45 +09:00
yvt
cbfa6afb49 Complete merge 2014-02-14 16:24:10 +09:00
yvt
ba6ecfde2f Merge branch 'master' into swrenderer 2014-02-14 16:21:49 +09:00
yvt
57c85482b8 Support for localization 2014-02-14 16:20:42 +09:00
yvt
5f5d40cba0 Updated font and its usage 2014-02-08 22:37:46 +09:00
yvt
ee2a90acf3 absolute mouse input support 2014-02-01 21:55:30 +09:00
yvt
139df00073 Font updated 2013-12-30 17:52:19 +09:00
yvt
7ffddd8b32 UTF-8 basic support + international fonts 2013-12-10 01:30:15 +09:00
yvt
87aedb702c Moved to SDL 2.0 + IME support 2013-12-09 17:36:05 +09:00
yvt
ca88537a6b Created new renderer method which works like SetColor but only accepts an alpha pre-multiplied color value, deprecating the badly-behaved SetColor method 2013-12-09 01:00:09 +09:00
yvt
df4e32a684 In-game menu 2013-11-27 16:30:54 +09:00
yvt
b51bbe53c3 Removed memory leak of spades::client::Client 2013-11-24 23:36:16 +09:00
yvt
9be4e6bd53 Main screen update 2013-11-24 02:27:08 +09:00
yvt
2e78b346a0 Main screen update 2013-11-23 22:13:04 +09:00
yvt
a83039ec16 Added main screen (not implemented) 2013-11-22 22:50:14 +09:00