Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/orbweaver/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Aug 27, 2021
2 parents 8224cb1 + 075b3d9 commit 5cef777
Show file tree
Hide file tree
Showing 35 changed files with 3,109 additions and 490 deletions.
21 changes: 21 additions & 0 deletions debian/changelog
@@ -1,3 +1,24 @@
darkradiant (2.13.0~focal4) focal; urgency=medium

* Fix for incorrect entity/brush colours in canvas windows.

-- Matthew Mott <orbweaver3d@gmail.com> Tue, 24 Aug 2021 19:45:54 +0100

darkradiant (2.13.0~focal1) focal; urgency=medium

* New major release on all platforms.
* Git integration with three-way map comparison and diffing.
* Ability to choose between several different pointfiles.
* Improved workflow for adjusting light brightness.
* Entity Inspector can show editor_usage information.
* BC5/RGTC normal map support.
* Aspect ratio-preserving Fit Texture option.
* Shader selector can show material definitions.
* Restore texture browser ability to show variable size thumbnails.
* Numerous other bug fixes and improvements.

-- Matthew Mott <orbweaver3d@gmail.com> Tue, 10 Aug 2021 19:41:21 +0100

darkradiant (2.12.0~focal3) focal; urgency=medium

* Include resources needed by the Material Editor preview.
Expand Down
10 changes: 8 additions & 2 deletions debian/control
Expand Up @@ -2,8 +2,8 @@ Source: darkradiant
Section: editors
Priority: optional
Maintainer: Matthew Mott <orbweaver3d@gmail.com>
Build-Depends: debhelper (>= 10), cmake (>= 3.12), pkg-config, libxml2-dev, libglew-dev, python-dev, libvorbis-dev, libopenal-dev, libalut-dev, libjpeg-dev, libftgl-dev, libwxbase3.0-dev, libwxgtk3.0-gtk3-dev, libsigc++-2.0-dev, libglib2.0-dev, libeigen3-dev
Standards-Version: 4.4.1
Build-Depends: debhelper (>= 10), cmake (>= 3.12), pkg-config, libxml2-dev, libglew-dev, python-dev, libvorbis-dev, libopenal-dev, libalut-dev, libjpeg-dev, libftgl-dev, libwxbase3.0-dev, libwxgtk3.0-gtk3-dev, libsigc++-2.0-dev, libglib2.0-dev, libeigen3-dev, libgit2-dev
Standards-Version: 4.5.1

Package: darkradiant
Architecture: any
Expand All @@ -18,6 +18,12 @@ Depends: darkradiant, ${shlibs:Depends}, ${misc:Depends}
Description: DarkMod-specific plugins for DarkRadiant
These plugins are used for editing Dark Mod missions.

Package: darkradiant-plugin-git
Architecture: any
Depends: darkradiant, ${shlibs:Depends}, ${misc:Depends}
Description: Git integration plugin for DarkRadiant
This plugin allows DarkRadiant to integrate with Git version control.

Package: darkradiant-i18n
Architecture: any
Depends: darkradiant, ${misc:Depends}
Expand Down
1 change: 1 addition & 0 deletions debian/darkradiant-plugin-git.install
@@ -0,0 +1 @@
usr/lib/*/darkradiant/plugins/libvcs*
2 changes: 1 addition & 1 deletion doc/CMakeLists.txt
@@ -1,5 +1,5 @@
add_custom_command(OUTPUT manual.html
COMMAND ${ASCIIDOCTOR} ARGS -a stylesheet=manual.css ${CMAKE_CURRENT_SOURCE_DIR}/manual.adoc
COMMAND ${ASCIIDOCTOR} ARGS -a stylesheet=manual.css -D ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/manual.adoc
DEPENDS manual.adoc)
add_custom_target(doc ALL DEPENDS manual.html)
install(FILES manual.html
Expand Down
11 changes: 9 additions & 2 deletions include/ieclasscolours.h
Expand Up @@ -27,8 +27,15 @@ class IColourManager :
// The colour is given in RGB values with each component in the interval [0..1].
virtual void addOverrideColour(const std::string& eclass, const Vector3& colour) = 0;

// Applies a possible colour override to the given entity class
virtual void applyColours(IEntityClass& eclass) = 0;
/**
* \brief Applies a possible colour override to the given entity class.
*
* If an override was found, the entity class's colour will be changed with
* setColour().
*
* \return true if an override was found, false otherwise.
*/
virtual bool applyColours(IEntityClass& eclass) = 0;

// Visit each override definition with the given functor
virtual void foreachOverrideColour(const std::function<void(const std::string&, const Vector3&)>& functor) = 0;
Expand Down
Binary file added install/bitmaps/activityindicator.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified install/bitmaps/cmenu_add_entity.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified install/bitmaps/folder16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified install/bitmaps/icon_sound.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified install/bitmaps/model16green.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified install/bitmaps/skin16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,242 changes: 1,242 additions & 0 deletions install/ui/gameconnection.fbp

Large diffs are not rendered by default.

231 changes: 231 additions & 0 deletions install/ui/gameconnection.xrc
@@ -0,0 +1,231 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<resource xmlns="http://www.wxwindows.org/wxxrc" version="2.3.0.1">
<object class="wxPanel" name="GameConnectionMainPanel">
<style>wxTAB_TRAVERSAL</style>
<size>360,222</size>
<object class="wxBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<option>1</option>
<flag>wxEXPAND</flag>
<border>5</border>
<object class="wxBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<option>0</option>
<flag>wxEXPAND</flag>
<border>5</border>
<object class="wxBoxSizer">
<orient>wxHORIZONTAL</orient>
<object class="sizeritem">
<option>1</option>
<flag>wxEXPAND</flag>
<border>5</border>
<object class="wxBoxSizer">
<orient>wxHORIZONTAL</orient>
<object class="sizeritem">
<option>0</option>
<flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
<border>5</border>
<object class="wxCheckBox" name="ConnectedCheckbox">
<label>Connected</label>
<checked>0</checked>
</object>
</object>
<object class="sizeritem">
<option>0</option>
<flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
<border>5</border>
<object class="wxStaticBitmap" name="ConnectedActivityIndicator">
<bitmap stock_id="darkradiant:activityindicator.png" stock_client="">undefined.png</bitmap>
</object>
</object>
</object>
</object>
<object class="sizeritem">
<option>1</option>
<flag>wxEXPAND</flag>
<border>5</border>
<object class="wxBoxSizer">
<orient>wxHORIZONTAL</orient>
<object class="sizeritem">
<option>0</option>
<flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
<border>5</border>
<object class="wxButton" name="RestartGameButton">
<tooltip>Restarts current map in game, starting TheDarkMod if necessary.\n\n* Note that it saves the current map first.\n* Make sure to configure &quot;File :: Game Setup&quot; settings.\n* Can attach to running game if &quot;com__automation 1&quot; is set in game console.\n</tooltip>
<label>(Re)Start game</label>
<default>0</default>
<markup>0</markup>
<bitmap />
</object>
</object>
<object class="sizeritem">
<option>0</option>
<flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
<border>5</border>
<object class="wxCheckBox" name="DmapCheckbox">
<tooltip>Dmap every time &quot;Restart game&quot; button is clicked.</tooltip>
<label>dmap</label>
<checked>1</checked>
</object>
</object>
</object>
</object>
</object>
</object>
<object class="sizeritem">
<option>0</option>
<flag>wxEXPAND | wxALL</flag>
<border>5</border>
<object class="wxStaticLine" name="m_staticline1">
<style>wxLI_HORIZONTAL</style>
</object>
</object>
<object class="sizeritem">
<option>1</option>
<flag>wxEXPAND</flag>
<border>5</border>
<object class="wxFlexGridSizer">
<rows>3</rows>
<cols>3</cols>
<vgap>0</vgap>
<hgap>0</hgap>
<growablecols></growablecols>
<growablerows></growablerows>
<object class="sizeritem">
<option>0</option>
<flag>wxALL|wxALIGN_CENTER_VERTICAL</flag>
<border>5</border>
<object class="wxStaticText" name="m_staticText8">
<label>Camera sync</label>
<wrap>-1</wrap>
</object>
</object>
<object class="sizeritem">
<option>0</option>
<flag>wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND</flag>
<border>5</border>
<object class="wxButton" name="CameraLoadFromGameButton">
<tooltip>Set preview camera to player&apos;s location in game.</tooltip>
<label>Load from game</label>
<default>0</default>
<markup>0</markup>
<bitmap />
</object>
</object>
<object class="sizeritem">
<option>0</option>
<flag>wxALL|wxALIGN_CENTER_VERTICAL</flag>
<border>5</border>
<object class="wxCheckBox" name="CameraSendToGameCheckbox">
<tooltip>Player&apos;s location in game constantly follows preview camera.\n\n* Also enables &quot;ghost mode&quot;: noclip + notarget +god.</tooltip>
<label>Send to game</label>
<checked>0</checked>
</object>
</object>
<object class="sizeritem">
<option>0</option>
<flag>wxALL|wxALIGN_CENTER_VERTICAL</flag>
<border>5</border>
<object class="wxStaticText" name="m_staticText9">
<label>Map file</label>
<wrap>-1</wrap>
</object>
</object>
<object class="sizeritem">
<option>0</option>
<flag>wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND</flag>
<border>5</border>
<object class="wxButton" name="MapFileReloadNowButton">
<tooltip>Reload game entities from .map file on disk.\n\n* You should save your map before doing this.\n* Game only updates entities which have changed since last hot reload update of any kind.</tooltip>
<label>Reload now</label>
<default>0</default>
<markup>0</markup>
<bitmap />
</object>
</object>
<object class="sizeritem">
<option>0</option>
<flag>wxALL|wxALIGN_CENTER_VERTICAL</flag>
<border>5</border>
<object class="wxCheckBox" name="MapFileReloadOnSaveCheckbox">
<tooltip>Reload game entities from .map file every time you save it.\n\nThis has same effect as clicking &quot;Reload now&quot; after every save.</tooltip>
<label>Reload on save</label>
<checked>0</checked>
</object>
</object>
<object class="sizeritem">
<option>0</option>
<flag>wxALL|wxALIGN_CENTER_VERTICAL</flag>
<border>5</border>
<object class="wxStaticText" name="m_staticText10">
<label>Hot reload</label>
<wrap>-1</wrap>
</object>
</object>
<object class="sizeritem">
<option>0</option>
<flag>wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND</flag>
<border>5</border>
<object class="wxButton" name="HotReloadUpdateNowButton">
<tooltip>Quickly update game entities to their current state in DarkRadiant.\n\n* The .map file is not touched: modifications are sent directly to game.\n* To enable &quot;Hot reload&quot; mode: save map and click &quot;Reload now&quot;.</tooltip>
<label>Update now</label>
<default>0</default>
<markup>0</markup>
<bitmap />
</object>
</object>
<object class="sizeritem">
<option>0</option>
<flag>wxALL|wxALIGN_CENTER_VERTICAL</flag>
<border>5</border>
<object class="wxCheckBox" name="HotReloadUpdateOnChangeCheckbox">
<tooltip>Update game entities automatically after every change.\n\nThis has same effect as clicking &quot;Update now&quot; very often.</tooltip>
<label>Update on change</label>
<checked>0</checked>
</object>
</object>
</object>
</object>
<object class="sizeritem">
<option>0</option>
<flag>wxEXPAND | wxALL</flag>
<border>5</border>
<object class="wxStaticLine" name="m_staticline11">
<style>wxLI_HORIZONTAL</style>
</object>
</object>
<object class="sizeritem">
<option>1</option>
<flag>wxEXPAND</flag>
<border>5</border>
<object class="wxBoxSizer">
<orient>wxHORIZONTAL</orient>
<object class="sizeritem">
<option>0</option>
<flag>wxALL</flag>
<border>5</border>
<object class="wxBitmapButton" name="RespawnSelectedButton">
<tooltip>Respawns currently selected entities in game.\n\nRespawning means that existing game entity is deleted, and a fresh one is spawned. It allows to force in-game update of a modified entity after ordinary hot reload did not work.</tooltip>
<bitmap stock_id="darkradiant:refresh.png" stock_client="">undefined.png</bitmap>
<default>0</default>
</object>
</object>
<object class="sizeritem">
<option>0</option>
<flag>wxALL</flag>
<border>5</border>
<object class="wxBitmapButton" name="PauseGameButton">
<tooltip>Pause/unpause the game.</tooltip>
<bitmap stock_id="darkradiant:media-playback-pause.png" stock_client="">undefined.png</bitmap>
<default>0</default>
</object>
</object>
</object>
</object>
</object>
</object>
</object>
</object>
</resource>
1 change: 1 addition & 0 deletions install/user.xml
Expand Up @@ -293,6 +293,7 @@
<toolbutton name="flush" action="RefreshShaders" tooltip="Reload Materials" icon="texwindow_flushandreload.png"/>
<toggletoolbutton name="showinuse" action="TextureBrowserHideUnused" tooltip="Hide Unused" icon="texwindow_hideunused.png"/>
<toggletoolbutton name="showfavourites" action="TextureBrowserShowFavouritesOnly" tooltip="Show Favourites only" icon="favourite.png"/>
<toggletoolbutton name="shownames" action="TextureBrowserShowNames" tooltip="Show texture names" icon="icon_text.png"/>
<toggletoolbutton name="useuniformscale" action="TextureBrowserToggleUniformScale" tooltip="Use Uniform Thumbnail Scale" icon="texwindow_uniformsize.png"/>
<separator/>
<toolbutton name="findandreplace" action="FindReplaceTextures" tooltip="Find &amp; Replace" icon="texwindow_findandreplace.png"/>
Expand Down
1 change: 0 additions & 1 deletion libs/RGBAImage.h
Expand Up @@ -61,7 +61,6 @@ class RGBAImage :
glGenTextures(1, &textureNum);
glBindTexture(GL_TEXTURE_2D, textureNum);

glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

// Upload the image to OpenGL, choosing an internal format based on role
Expand Down
2 changes: 1 addition & 1 deletion libs/registry/CachedKey.h
Expand Up @@ -28,7 +28,7 @@ class CachedKey: public sigc::trackable
public:

/// Construct a CachedKey to observe the given registry key
CachedKey(const std::string& key)
explicit CachedKey(const std::string& key)
: _key(key)
{
updateCachedValue();
Expand Down

0 comments on commit 5cef777

Please sign in to comment.