mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-29 14:35:45 +00:00
Correctif dés !
This commit is contained in:
parent
1ea384afaf
commit
78835a54a3
3 changed files with 20 additions and 3 deletions
|
|
@ -82,7 +82,10 @@
|
|||
<Button Text="Menu" Clicked="Menu_Clicked"/>
|
||||
<Button Text="Générer" Clicked="Refresh_Clicked"/>
|
||||
</StackLayout>
|
||||
<urho:UrhoSurface x:Name="HelloWorldUrhoSurface" VerticalOptions="FillAndExpand" BackgroundColor="White" />
|
||||
<StackLayout x:Name="RootSurface" VerticalOptions="FillAndExpand" BackgroundColor="White" >
|
||||
|
||||
</StackLayout>
|
||||
<!--<urho:UrhoSurface x:Name="HelloWorldUrhoSurface" VerticalOptions="FillAndExpand" BackgroundColor="White" />-->
|
||||
</StackLayout>
|
||||
</ContentPage.Content>
|
||||
</ContentPage>
|
||||
|
|
@ -91,8 +91,13 @@ namespace AideDeJeu.Views
|
|||
{
|
||||
try
|
||||
{
|
||||
var ao = new Urho.ApplicationOptions(assetsFolder: null);
|
||||
charts = await HelloWorldUrhoSurface.Show<Charts>(ao);
|
||||
//if (charts == null)
|
||||
//{
|
||||
var ao = new Urho.ApplicationOptions(assetsFolder: null);
|
||||
var urhoSurface = new Urho.Forms.UrhoSurface() { VerticalOptions = LayoutOptions.FillAndExpand, BackgroundColor = Xamarin.Forms.Color.White };
|
||||
RootSurface.Children.Add(urhoSurface);
|
||||
charts = await urhoSurface.Show<Charts>(ao);
|
||||
//}
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
|
|
@ -132,6 +137,10 @@ namespace AideDeJeu.Views
|
|||
}
|
||||
}
|
||||
catch { }
|
||||
RootSurface.Children.Clear();
|
||||
//charts?.DoStop();
|
||||
////charts?.Dispose();
|
||||
//charts = null;
|
||||
}
|
||||
|
||||
private void Menu_Clicked(object sender, EventArgs e)
|
||||
|
|
|
|||
|
|
@ -26,6 +26,11 @@ namespace AideDeJeu.Views
|
|||
Viewport vp;
|
||||
Renderer renderer;
|
||||
|
||||
public void DoStop()
|
||||
{
|
||||
base.Exit(); //.Stop();
|
||||
}
|
||||
|
||||
public Bar SelectedBar { get; private set; }
|
||||
|
||||
public IEnumerable<Bar> Bars => bars;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue