|
1 |
| -PrefsUGUI |
2 |
| -=== |
3 |
| - |
4 |
| - |
5 |
| -## Description |
6 |
| -The library that auto creation GUI elements by doing variable declaration. |
7 |
| - |
8 |
| -*Inspired by [fuqunaga/PrefsGUI](https://github.com/fuqunaga/PrefsGUI)* |
9 |
| -PrefsGUI is a so useful library. But, PrefsGUI is using the OnGUI system, So I have some problem by itself. |
10 |
| -- In high resolution display, GUI window is showing like so small. |
11 |
| -- OnGUI system don't have kind and useful visual. |
12 |
| -- I heard that OnGUI system to make a spike sometimes. |
13 |
| -- OnGUI system can't validate about input values. |
14 |
| - |
15 |
| -By uGUI system, I can solve those problems like easy. |
16 |
| - |
17 |
| - |
18 |
| - |
19 |
| -## Usage |
20 |
| -Sample code |
21 |
| -```` csharp |
22 |
| -using PrefsUGUI; |
23 |
| - |
24 |
| -public class Example : MonoBehaviour |
25 |
| -{ |
26 |
| - private PrefsVector2 vec2 = new PrefsVector2("vec2"); |
27 |
| -} |
28 |
| -```` |
29 |
| -If you want to view more details, Let's check Example codes. |
30 |
| -[Example codes](Assets/PrefsUGUI/Examples/) |
31 |
| - |
32 |
| -## Behaviour |
33 |
| -- Using the [XmlStorage](https://github.com/a3geek/XmlStorage) library for saving and loading data. |
34 |
| -<br /> |
35 |
| - |
36 |
| -- I generate and use a dedicated Canvas. |
37 |
| -<br /> |
38 |
| - |
39 |
| -- You can move uGUI window by mouse moving. |
40 |
| -<br /> |
41 |
| - |
42 |
| -- If you pressed discard button, back values to last saved. |
43 |
| -<br /> |
44 |
| - |
45 |
| -## Implemented type |
46 |
| -- PrefsBool |
47 |
| -- PrefsButton |
48 |
| -- PrefsColor |
49 |
| -- PrefsColorSlider |
50 |
| -- PrefsEnum |
51 |
| -- PrefsFloat |
52 |
| -- PrefsFloatSlider |
53 |
| -- PrefsInt |
54 |
| -- PrefsIntSlider |
55 |
| -- PrefsString |
56 |
| -- PrefsVector2 |
57 |
| -- PrefsVector2Int |
58 |
| -- PrefsVector3 |
59 |
| -- PrefsVector3Int |
60 |
| -- PrefsVector4 |
61 |
| - |
62 |
| -## References |
63 |
| -[fuqunaga/PrefsGUI](https://github.com/fuqunaga/PrefsGUI) |
64 |
| -[XmlStorage](https://github.com/a3geek/XmlStorage) |
| 1 | +PrefsUGUI |
| 2 | +=== |
| 3 | + |
| 4 | + |
| 5 | +## Description |
| 6 | +The library that auto creation GUI elements by doing variable declaration. |
| 7 | + |
| 8 | +*Inspired by [fuqunaga/PrefsGUI](https://github.com/fuqunaga/PrefsGUI)* |
| 9 | +PrefsGUI is a so useful library. But, PrefsGUI is using the OnGUI system, So I have some problem by itself. |
| 10 | +- In high resolution display, GUI window is showing like so small. |
| 11 | +- OnGUI system don't have kind and useful visual. |
| 12 | +- I heard that OnGUI system to make a spike sometimes. |
| 13 | +- OnGUI system can't validate about input values. |
| 14 | + |
| 15 | +By uGUI system, I can solve those problems like easy. |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +## Usage |
| 20 | +Sample code |
| 21 | +```` csharp |
| 22 | +using PrefsUGUI; |
| 23 | + |
| 24 | +public class Example : MonoBehaviour |
| 25 | +{ |
| 26 | + public IReadOnlyPrefs<float> value = new PrefsFloat("value", 10f); // Read Only Interface. |
| 27 | +
|
| 28 | + private PrefsVector2 vec2 = new PrefsVector2("vec2"); |
| 29 | +} |
| 30 | +```` |
| 31 | +If you want to view more details, Let's check Example codes. |
| 32 | +[Example codes](Assets/PrefsUGUI/Examples/) |
| 33 | + |
| 34 | +## Behaviour |
| 35 | +- Using the [XmlStorage](https://github.com/a3geek/XmlStorage) library for saving and loading data. |
| 36 | +<br /> |
| 37 | + |
| 38 | +- A save key is generate by combine with full hierarchy path and SaveKey parameter. |
| 39 | + |
| 40 | +- I generate and use a dedicated Canvas. |
| 41 | +<br /> |
| 42 | + |
| 43 | +- You can move uGUI window by mouse moving. |
| 44 | +<br /> |
| 45 | + |
| 46 | +- If you pressed discard button, back values to last saved. |
| 47 | +<br /> |
| 48 | + |
| 49 | +## Implemented type |
| 50 | +- PrefsBool |
| 51 | +- PrefsButton |
| 52 | +- PrefsColor |
| 53 | +- PrefsColorSlider |
| 54 | +- PrefsEnum |
| 55 | +- PrefsFloat |
| 56 | +- PrefsFloatSlider |
| 57 | +- PrefsImageLabel |
| 58 | +- PrefsInt |
| 59 | +- PrefsIntSlider |
| 60 | +- PrefsLabel |
| 61 | +- PrefsRect |
| 62 | +- PrefsString |
| 63 | +- PrefsVector2 |
| 64 | +- PrefsVector2Int |
| 65 | +- PrefsVector3 |
| 66 | +- PrefsVector3Int |
| 67 | +- PrefsVector4 |
| 68 | + |
| 69 | +## References |
| 70 | +[fuqunaga/PrefsGUI](https://github.com/fuqunaga/PrefsGUI) |
| 71 | +[XmlStorage](https://github.com/a3geek/XmlStorage) |
0 commit comments