1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-29 22:45:44 +00:00

Correctif dés !

This commit is contained in:
Yan Maniez 2019-10-28 23:12:14 +01:00
parent 1ea384afaf
commit 78835a54a3
3 changed files with 20 additions and 3 deletions

View file

@ -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>

View file

@ -91,8 +91,13 @@ namespace AideDeJeu.Views
{
try
{
//if (charts == null)
//{
var ao = new Urho.ApplicationOptions(assetsFolder: null);
charts = await HelloWorldUrhoSurface.Show<Charts>(ao);
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)

View file

@ -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;