N-pt perspective: Don't operate in novice mode
This commit is contained in:
parent
972195e38b
commit
5f8522766c
2 changed files with 34 additions and 25 deletions
|
|
@ -7,31 +7,6 @@ Various contributors (see below, and AUTHORS.txt)
|
|||
https://tuxpaint.org/
|
||||
|
||||
2023.December.29 (0.9.32)
|
||||
* New Magic Tools:
|
||||
----------------
|
||||
* Vanishing point magic tools:
|
||||
+ 1-point Perspective ("1-Point Select" & "1-Point Draw")
|
||||
Choose a vanishing point, and then draw lines that always
|
||||
point towards it, or are vertical or horizontal.
|
||||
+ 2-point Perspective ("2-Point Select" & "2-Point Draw")
|
||||
Choose two vanishing points, and then draw lines that always
|
||||
point towards them, along the horizon defined by them,
|
||||
or perpendicular to that horizon.
|
||||
+ 3-point Perspective ("3-Point Select" & "3-Point Draw")
|
||||
Choose three vanishing points, and then draw lines that always
|
||||
point towards them, or along the horizon defined by the first two.
|
||||
+ Code: Bill Kendrick <bill@newbreedsoftware.com>
|
||||
+ Sounds:
|
||||
- Select: "Gummibandloop_121.wav"
|
||||
(https://freesound.org/people/von_Gardener/sounds/473829/)
|
||||
Creative Commons 0 by von_Gardener
|
||||
- Click: "Rubber Band"
|
||||
(https://freesound.org/people/IndigoRay/sounds/241869/)
|
||||
Creative Commons 0 by IndigoRay
|
||||
- Release: "Elastic band c note"
|
||||
(https://freesound.org/people/mudflea2/sounds/708182/)
|
||||
Creative Commons 0 by mudflea2
|
||||
|
||||
* Improvements to Magic tools:
|
||||
----------------------------
|
||||
* WIP - Support for complexity levels in Magic tools via the
|
||||
|
|
@ -49,6 +24,32 @@ https://tuxpaint.org/
|
|||
complexity mode.
|
||||
Bill Kendrick <bill@newbreedsoftware.com>
|
||||
|
||||
* New Magic Tools:
|
||||
----------------
|
||||
* Vanishing point magic tools:
|
||||
+ 1-point Perspective ("1-Point Select" & "1-Point Draw")
|
||||
Choose a vanishing point, and then draw lines that always
|
||||
point towards it, or are vertical or horizontal.
|
||||
+ 2-point Perspective ("2-Point Select" & "2-Point Draw")
|
||||
Choose two vanishing points, and then draw lines that always
|
||||
point towards them, along the horizon defined by them,
|
||||
or perpendicular to that horizon.
|
||||
+ 3-point Perspective ("3-Point Select" & "3-Point Draw")
|
||||
Choose three vanishing points, and then draw lines that always
|
||||
point towards them, or along the horizon defined by the first two.
|
||||
+ Tools do not operate when in "novice" complexity mode.
|
||||
+ Code: Bill Kendrick <bill@newbreedsoftware.com>
|
||||
+ Sounds:
|
||||
- Select: "Gummibandloop_121.wav"
|
||||
(https://freesound.org/people/von_Gardener/sounds/473829/)
|
||||
Creative Commons 0 by von_Gardener
|
||||
- Click: "Rubber Band"
|
||||
(https://freesound.org/people/IndigoRay/sounds/241869/)
|
||||
Creative Commons 0 by IndigoRay
|
||||
- Release: "Elastic band c note"
|
||||
(https://freesound.org/people/mudflea2/sounds/708182/)
|
||||
Creative Commons 0 by mudflea2
|
||||
|
||||
* Improvements to "Text" & "Label" tools:
|
||||
---------------------------------------
|
||||
* The name and size of the chosen font is shown in the instructions
|
||||
|
|
|
|||
|
|
@ -144,6 +144,14 @@ int n_pt_persp_init(magic_api * api, Uint8 disabled_features ATTRIBUTE_UNUSED, U
|
|||
int i;
|
||||
char filename[1024];
|
||||
|
||||
if (complexity_level == MAGIC_COMPLEXITY_NOVICE) {
|
||||
/* No N-point perspective tools _at all_, if in Novice mode */
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* FIXME: Behave differently if in BEGINNER mode, vs ADVANCED */
|
||||
/* (See idea in https://sourceforge.net/p/tuxpaint/feature-requests/247/ -bjk 2023.12.29) */
|
||||
|
||||
for (i = 0; i < NUM_SNDS; i++)
|
||||
{
|
||||
snprintf(filename, sizeof(filename), "%s/sounds/magic/%s", api->data_directory,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue