-
-
Notifications
You must be signed in to change notification settings - Fork 616
feat(ClickGUI): vector value improvement #7588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: nextgen
Are you sure you want to change the base?
Conversation
|
Wouldn't it make more sense to have a |
|
I think it's because Vec3 setting can be set from player position. |
|
I'm trying to improve this now. |
I think that should be a property of the specific setting. I wouldn't make sense to have this ability for all Vec3s. Only those that refer to the player's position. |
|
Agree. But current vector values are all plain value like int/float. This PR won't include this. |
|
@SenkJu Done |
|
As I said it's plain value: fun color(name: String, default: Color4b) = value(name, default, ValueType.COLOR)
fun block(name: String, default: Block) = value(name, default, ValueType.BLOCK)
fun vec2f(name: String, default: Vector2fc) = value(name, default, ValueType.VECTOR2_F)
fun vec3i(name: String, default: Vec3i) = value(name, default, ValueType.VECTOR3_I)
fun vec3d(name: String, default: Vec3) = value(name, default, ValueType.VECTOR3_D)I want to add a map to each value instance for custom properties like this, this requires a more careful backend design. cc @1zun4 |
|
Oh I forget another thing. We can't use |
|
just do whatever works, I agree with just adding options so we can control when to show the locate button or not. |
|
An easy solution is class Vec3Value(name: String, default: Vec3, val useLocateButton: Boolean) : Value(name, default) |
|
Hold on, some minutes |
|
Let's go |
|
@SenkJu ready |
|
Was there a specific reason for using |
|
No because it's currently uneditable. |

No description provided.