Exemplo n.º 1
0
 public void SetChannelDecal(DCustomizationChannel channelToAlter, Texture2D decalTexture, Vector2 position, Renderer chosenRenderer)
 {
     SelectChannel(channelToAlter);
     channelToAlter.SetDecal(decalTexture, chosenRenderer);
     channelToAlter.DecalUVOffset = position;
     IsChanged = true;
 }
 public DecalChangedEvent(Texture2D newDecal, DCustomizationChannel channel, DCustomizerLayer decalLayer, Renderer chosenRenderer = null)
 {
     NewDecal       = newDecal;
     Channel        = channel;
     DecalLayer     = decalLayer;
     ChosenRenderer = chosenRenderer;
 }
Exemplo n.º 3
0
 public void SetChannelFabric(DCustomizationChannel channelToAlter, Texture2D fabricTexture, Vector2 position)
 {
     SelectChannel(channelToAlter);
     channelToAlter.SetFabric(fabricTexture);
     channelToAlter.FabricUVOffset = position;
     IsChanged = true;
 }
Exemplo n.º 4
0
 public void ResetChannels()
 {
     customizationChannelList    = new DCustomizationChannel[3];
     customizationChannelList[0] = new DCustomizationChannel(DCustomizationChannel.ChannelMask.RED);
     customizationChannelList[1] = new DCustomizationChannel(DCustomizationChannel.ChannelMask.GREEN);
     customizationChannelList[2] = new DCustomizationChannel(DCustomizationChannel.ChannelMask.BLUE);
     currentChannel = customizationChannelList[0];
     for (int i = 0; i < customizationChannelList.Length; i++)
     {
         customizationChannelList[i].SetFabricNameToInteractable(nameToInteractable);
     }
     ApplyDefaultTextures();
 }
Exemplo n.º 5
0
 public void SelectChannel(DCustomizationChannel newChannel)
 {
     for (int i = 0; i < customizationChannelList.Length; i++)
     {
         if (customizationChannelList[i] == newChannel)
         {
             customizationChannelList[i].Select();
             currentChannel = customizationChannelList[i];
         }
         else
         {
             customizationChannelList[i].Deselect();
         }
     }
     CustomizationContext.EventBus.DispatchEvent(new CustomizerModelEvents.ChannelChangedEvent(newChannel));
 }
Exemplo n.º 6
0
 public SelectCustomizerStateEvent(DCustomizationChannel newState)
 {
     NewState = newState;
 }
Exemplo n.º 7
0
 public SelectChannelEvent(DCustomizationChannel newChannel)
 {
     NewChannel = newChannel;
 }
 public DecalTilingChangedEvent(bool isTiled, DCustomizationChannel channel, DCustomizerLayer decalLayer)
 {
     IsTiled    = isTiled;
     Channel    = channel;
     DecalLayer = decalLayer;
 }
 public ColorChangedEvent(Color newColor, DCustomizationChannel channel)
 {
     NewColor = newColor;
     Channel  = channel;
 }
Exemplo n.º 10
0
 public CustomizationOptionsChanged(DCustomizationChannel channel)
 {
     Channel = channel;
 }
Exemplo n.º 11
0
 public ChannelEnabledChangedEvent(DCustomizationChannel channel, bool isEnabled)
 {
     Channel   = channel;
     IsEnabled = isEnabled;
 }
Exemplo n.º 12
0
 public DecalMovedEvent(Vector2 uvOffset, DCustomizationChannel channel, DCustomizerLayer decalLayer)
 {
     UVOffset   = uvOffset;
     Channel    = channel;
     DecalLayer = decalLayer;
 }
Exemplo n.º 13
0
 public DecalTintChangedEvent(Color newColor, DCustomizationChannel channel, DCustomizerLayer decalLayer)
 {
     NewColor   = newColor;
     Channel    = channel;
     DecalLayer = decalLayer;
 }
Exemplo n.º 14
0
 public DecalRotatedEvent(float totalRotation, DCustomizationChannel channel, DCustomizerLayer decalLayer)
 {
     TotalRotation = totalRotation;
     Channel       = channel;
     DecalLayer    = decalLayer;
 }
Exemplo n.º 15
0
 public ChannelChangedEvent(DCustomizationChannel newChannel)
 {
     NewChannel = newChannel;
 }
Exemplo n.º 16
0
 public DecalScaledEvent(float newScale, DCustomizationChannel channel, DCustomizerLayer decalLayer)
 {
     NewScale   = newScale;
     Channel    = channel;
     DecalLayer = decalLayer;
 }