Struct vtubestudio::data::ArtMeshSelectionRequest
source · [−]pub struct ArtMeshSelectionRequest {
pub text_override: Option<String>,
pub help_override: Option<String>,
pub requested_art_mesh_count: i32,
pub active_art_meshes: Vec<String>,
}
Expand description
Asking user to select ArtMeshes.
You can use this request to show a list in VTube Studio containing all ArtMeshes of the currently loaded main Live2D model and have the user select one or more of them. Once the user is done selecting ArtMeshes, the ArtMesh IDs will be returned. You can use those ArtMesh IDs in various other API requests, for example to apply a color tint to them or make them invisible.
If no model is currently loaded or there are currently other windows open, the request will return an error.
The user can hover over ArtMeshes to show their ID and click them to filter the shown list for all ArtMeshes under on the click position.
This request returns ArtMeshSelectionResponse
.
Fields
text_override: Option<String>
This text is shown over the ArtMesh selection list.
Must be between 4 and 1024 characters long, otherwise the default will be used.
help_override: Option<String>
This text is shown when the user presses the ?
button.
Must be between 4 and 1024 characters long, otherwise the default will be used.
requested_art_mesh_count: i32
How many art meshes must be selected by the user.
The “OK” button will be unavailable until exactly this many ArtMeshes are activated. If you set this to 0 or lower, the user will be asked to choose any arbitrary number of ArtMeshes (but at least one).
active_art_meshes: Vec<String>
List of ArtMeshes to be pre-selected.
If any of these IDs are not contained in the current model, an error will be returned.
Trait Implementations
sourceimpl Clone for ArtMeshSelectionRequest
impl Clone for ArtMeshSelectionRequest
sourcefn clone(&self) -> ArtMeshSelectionRequest
fn clone(&self) -> ArtMeshSelectionRequest
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for ArtMeshSelectionRequest
impl Debug for ArtMeshSelectionRequest
sourceimpl Default for ArtMeshSelectionRequest
impl Default for ArtMeshSelectionRequest
sourcefn default() -> ArtMeshSelectionRequest
fn default() -> ArtMeshSelectionRequest
sourceimpl<'de> Deserialize<'de> for ArtMeshSelectionRequest
impl<'de> Deserialize<'de> for ArtMeshSelectionRequest
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
sourceimpl PartialEq<ArtMeshSelectionRequest> for ArtMeshSelectionRequest
impl PartialEq<ArtMeshSelectionRequest> for ArtMeshSelectionRequest
sourcefn eq(&self, other: &ArtMeshSelectionRequest) -> bool
fn eq(&self, other: &ArtMeshSelectionRequest) -> bool
sourceimpl Request for ArtMeshSelectionRequest
impl Request for ArtMeshSelectionRequest
type Response = ArtMeshSelectionResponse
type Response = ArtMeshSelectionResponse
Response
type for this request.