Skip to content

Commit

Permalink
Add right-clicking for quickly setting
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg committed Jan 13, 2024
1 parent 7ba0149 commit d2e3d43
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion VRADFix/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,13 @@ private void luxelsCanvas_MouseClick(object sender, MouseEventArgs e)
{
selectedX = e.X / LUXEL_DISP_SIZE;
selectedY = e.Y / LUXEL_DISP_SIZE;
if (e.Button == MouseButtons.Right)
{
surface.lightmapLDR[selectedX, selectedY].r = Convert.ToByte(spinnerR.Value);
surface.lightmapLDR[selectedX, selectedY].g = Convert.ToByte(spinnerG.Value);
surface.lightmapLDR[selectedX, selectedY].b = Convert.ToByte(spinnerB.Value);
//surface.lightmapLDR[selectedX, selectedY].e = Convert.ToSByte(spinnerE.Value);
}
updateLightmapViewer();

}
Expand All @@ -428,4 +435,4 @@ private void luxelsCanvas_MouseClick(object sender, MouseEventArgs e)
MessageBox.Show("You must enter a faceID\n\nLoad your map and use the command \"mat_surfaceid 2\" to display faceIDs.\n\"mat_wireframe 3\" is also useful to see face divisions", "Information", MessageBoxButtons.OK);
}*/
}
}
}

0 comments on commit d2e3d43

Please sign in to comment.