OpenRA / OpenRA

Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X.
https://www.openra.net
GNU General Public License v3.0
14.67k stars 2.67k forks source link

[d2k] cursor.yaml palette does not support shadows #2221

Closed Mailaender closed 12 years ago

Mailaender commented 12 years ago

There are two ways to define the mouse pointer palette:

cursor.yaml:

Palettes:
    cursor: cursor.pal

This works all the time, but has no shadow color defined.

system.yaml:

    PaletteFromFile@d2k:
        Name: d2k
        Filename: d2k.pal

If cursor.yaml referes to this definition it gets proper transparency. However it does not find the palette when the installer chrome is loaded (and system.yaml is not). You also can't set both as it will result in "already defined" error.

chrisforbes commented 12 years ago

In CursorProvider, you'll see that it forces the transparent parameter to false. This can possibly be true now -- we used to ship mouse.shp as a Dune2 ("Format2") SHP, but it has been converted to Format80 a long time ago.

Mailaender commented 12 years ago

That makes it transparent which works for d2k. However some cnc icons like deploy ore ion cannon target will look weird so it might better be an option.

Mailaender commented 12 years ago

Done in pull request #2231