mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Better support for working with blend in the editor
git-svn-id: https://svn.eduke32.com/eduke32@6175 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d0211379e0
commit
feb8b43892
3 changed files with 16 additions and 1 deletions
|
@ -1077,6 +1077,7 @@ static void handle_sprite_in_clipboard(int32_t i)
|
|||
sprite[i].picnum = j;
|
||||
}
|
||||
sprite[i].shade = tempshade;
|
||||
sprite[i].blend = tempblend;
|
||||
sprite[i].pal = temppal;
|
||||
sprite[i].xrepeat = max(tempxrepeat, 1);
|
||||
sprite[i].yrepeat = max(tempyrepeat, 1);
|
||||
|
|
|
@ -116,7 +116,7 @@ int32_t r_downsizevar = -1;
|
|||
static float fogresult, fogresult2;
|
||||
coltypef fogcol, fogtable[MAXPALOOKUPS];
|
||||
|
||||
static float float_trans(uint32_t maskprops, uint8_t blend)
|
||||
static inline float float_trans(uint32_t maskprops, uint8_t blend)
|
||||
{
|
||||
switch (maskprops)
|
||||
{
|
||||
|
|
|
@ -5723,6 +5723,18 @@ static void Keys3d(void)
|
|||
}
|
||||
}
|
||||
|
||||
if (keystatus[KEYSC_QUOTE] && PRESSED_KEYSC(B)) // ' B
|
||||
{
|
||||
if (AIMING_AT_SPRITE)
|
||||
{
|
||||
int8_t oblend = sprite[searchwall].blend;
|
||||
Bsprintf(tempbuf, "%s blend: ", Typestr[searchstat]);
|
||||
getnumberptr256(tempbuf, &sprite[searchwall].blend, sizeof(int8_t), 255, 0, NULL);
|
||||
if (sprite[searchwall].blend != oblend)
|
||||
asksave = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (PRESSED_KEYSC(F2)) // F2
|
||||
{
|
||||
if (eitherCTRL || eitherSHIFT)
|
||||
|
@ -6582,6 +6594,8 @@ static void Keys3d(void)
|
|||
if (somethingintab == SEARCH_CEILING || somethingintab == SEARCH_FLOOR)
|
||||
k=1, sector[searchsector].visibility = tempvis;
|
||||
}
|
||||
else if (AIMING_AT_SPRITE)
|
||||
sprite[searchwall].blend = tempblend;
|
||||
|
||||
message("Pasted shade+pal%s", k?"+visibility":"");
|
||||
asksave = 1;
|
||||
|
|
Loading…
Reference in a new issue