Skip to content

Commit

Permalink
Update project version to 0.8.910
Browse files Browse the repository at this point in the history
The version number of the project has been updated from 0.8.908 to 0.8.910.
  • Loading branch information
BoiHanny committed Aug 2, 2024
1 parent 20131ef commit 8d9f4b7
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 2 deletions.
5 changes: 5 additions & 0 deletions vrcosc-magicchatbox/Classes/DataAndSecurity/DataController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ public static void LoadComponentStats()
{ "ScanningInterval", (typeof(double), "Scanning") },
{ "ScanPauseTimeout", (typeof(int), "Scanning") },

{ "PrefixIconStatus", (typeof(bool), "Icons") },
{ "PrefixIconMusic", (typeof(bool), "Icons") },
{ "PauseIconMusic", (typeof(bool), "Icons") },
{ "PrefixIconStatus", (typeof(bool), "Icons") },
Expand Down Expand Up @@ -763,6 +764,10 @@ private static void CheckForSpecialMessages(ObservableCollection<StatusItem> sta
{
ViewModel.Instance.Egg_Dev = true;
}
if(statusList.Any(x => x.msg.Equals("izurubae", StringComparison.OrdinalIgnoreCase)))
{
ViewModel.Instance.IzuruBaeMode = true;
}
}

private static void InitializeStatusListWithDefaults()
Expand Down
8 changes: 7 additions & 1 deletion vrcosc-magicchatbox/Classes/DataAndSecurity/OSCController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,14 @@ public static void AddStatusMessage(List<string> Uncomplete)
// Update LastUsed property for the active item
activeItem.LastUsed = DateTime.Now;

string icon = "💬";
if (ViewModel.Instance.IzuruBaeMode && !string.IsNullOrWhiteSpace(ViewModel.Instance.PrefixIconStatusEgg))
{
icon = ViewModel.Instance.PrefixIconStatusEgg.Substring(0, 1);
}

string? x = ViewModel.Instance.PrefixIconStatus == true
? "💬 " + activeItem.msg
? $"{icon} " + activeItem.msg
: activeItem.msg;

if (x != null)
Expand Down
2 changes: 1 addition & 1 deletion vrcosc-magicchatbox/MagicChatbox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<Version>0.8.908</Version>
<Version>0.8.910</Version>
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
<RootNamespace>vrcosc_magicchatbox</RootNamespace>
<Nullable>enable</Nullable>
Expand Down
68 changes: 68 additions & 0 deletions vrcosc-magicchatbox/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,74 @@
</CheckBox>


</Border>
<Border
Margin="5,0,0,5"
CornerRadius="5,0,0,5"
Visibility="{Binding IzuruBaeMode, Converter={StaticResource InverseBoolToHiddenConverter}, UpdateSourceTrigger=PropertyChanged}">
<Border.Background>
<LinearGradientBrush SpreadMethod="Pad" StartPoint="1,1" EndPoint="0,0">
<GradientStop Color="#FF40365B" />
<GradientStop Offset="1" Color="#FFEA005E" />
</LinearGradientBrush>
</Border.Background>
<StackPanel>
<Grid>
<TextBlock
Padding="4,5,9,0"
VerticalAlignment="Center"
FontFamily="Albert Sans Thin"
FontSize="17"
FontWeight="DemiBold"
Foreground="White"
RenderOptions.BitmapScalingMode="NearestNeighbor"
Text="IzuruBae's custom status icon">
<TextBlock.Effect>
<DropShadowEffect
BlurRadius="5"
Direction="0"
ShadowDepth="0"
Color="White" />
</TextBlock.Effect>
</TextBlock>
</Grid>
<StackPanel Margin="5,4,0,5" Orientation="Horizontal">
<TextBlock
Padding="0,0,4,0"
VerticalAlignment="Center"
FontFamily="Albert Sans Thin"
FontSize="15"
Foreground="White"
RenderOptions.BitmapScalingMode="NearestNeighbor"
Text="Make it like:">
<TextBlock.Effect>
<DropShadowEffect
BlurRadius="5"
Direction="0"
ShadowDepth="0"
Color="White" />
</TextBlock.Effect>
</TextBlock>
<TextBox
x:Name="CustomIcon"
Width="auto"
Height="auto"
MinWidth="20"
Margin="0,0,0,0"
Padding="5,0"
HorizontalAlignment="Left"
VerticalContentAlignment="Center"
Background="White"
BorderThickness="0"
FontSize="15"
Foreground="#FF240E54"
Text="{Binding PrefixIconStatusEgg, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
TextAlignment="Center" />
</StackPanel>
</StackPanel>



</Border>
<Border
Margin="0,0,0,5"
Expand Down
18 changes: 18 additions & 0 deletions vrcosc-magicchatbox/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,15 @@ private void AddFav_Click(object sender, RoutedEventArgs e)
MessageBoxButton.OK,
MessageBoxImage.Information);
}
if (ViewModel.Instance.NewStatusItemTxt.ToLower() == "izurubae")
{
ViewModel.Instance.IzuruBaeMode = true;
MessageBox.Show(
"u found the izurubae mode go to options",
"Egg",
MessageBoxButton.OK,
MessageBoxImage.Information);
}
ViewModel.Instance.NewStatusItemTxt = string.Empty;
ViewModel.SaveStatusList();
}
Expand Down Expand Up @@ -374,6 +383,15 @@ private void DeleteButton_Click(object sender, RoutedEventArgs e)
MessageBoxButton.OK,
MessageBoxImage.Information);
}
if (item.msg.ToLower() == "izurubae")
{
ViewModel.Instance.IzuruBaeMode = false;
MessageBox.Show(
"damn u left the izurubae mode",
"Egg",
MessageBoxButton.OK,
MessageBoxImage.Information);
}
ViewModel.Instance.StatusList.Remove(item);
ViewModel.SaveStatusList();
}
Expand Down
23 changes: 23 additions & 0 deletions vrcosc-magicchatbox/ViewModels/ViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,29 @@ public string ThirdOSCIP
}
}

private bool _IzuruBaeMode = false;
public bool IzuruBaeMode
{
get => _IzuruBaeMode;
set
{
_IzuruBaeMode = value;
NotifyPropertyChanged(nameof(IzuruBaeMode));
}
}

private string _PrefixIconStatusEgg = "";

public string PrefixIconStatusEgg
{
get { return _PrefixIconStatusEgg; }
set
{
_PrefixIconStatusEgg = value;
NotifyPropertyChanged(nameof(PrefixIconStatusEgg));
}
}


private MediaLinkStyle _SelectedMediaLinkSeekbarStyle;

Expand Down

0 comments on commit 8d9f4b7

Please sign in to comment.