Skip to content

Commit

Permalink
Added first run demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgamerz committed Dec 21, 2017
1 parent 75c61a8 commit 6bd7546
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 24 deletions.
1 change: 1 addition & 0 deletions AlotAddOnGUI/AlotAddOnGUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
<Resource Include="images\greencheck_large.png" />
<Resource Include="images\redx_large.png" />
<Resource Include="images\workingicon.png" />
<Resource Include="images\firstrunbg.jpg" />
<Content Include="memodder\MassEffectModder.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down
29 changes: 29 additions & 0 deletions AlotAddOnGUI/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@
<!--<Label x:Name="ImportFailedLabel" FontSize="14" Content="An import failed!"></Label>-->
<ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Auto">
<StackPanel Margin="5">
<Button Click="ShowFirstTime" Content="Show First Time"/>
<CheckBox Margin="5" Visibility="Collapsed" x:Name="Checkbox_MoveFilesAsImport" Content="Import via Move instead of Copy" Click="Checkbox_MoveFilesAsImport_Click" ToolTip="Files that are importing will be moved instead of copied."/>
<CheckBox Margin="5" x:Name="Checkbox_BetaMode" Content="Beta Mode" Click="Checkbox_BetaMode_Click" ToolTip="Enable beta mode features. Require restart for full effect, may break application."/>

Expand Down Expand Up @@ -371,6 +372,34 @@
</StackPanel>
</Border>
</Controls:Flyout>
<Controls:Flyout x:Name="FirstRunFlyout" SnapsToDevicePixels="True" TitleVisibility="Hidden" Theme="Accent" CloseButtonVisibility="Hidden" Position="Top" Height="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Controls:MetroWindow}, Path=ActualHeight}" MouseDoubleClick="InstallingOverlayoutFlyout_DoubleClick" MouseDown="InstallingOverlayFlyout_MouseDown">
<Border x:Name="FirstRunOverlayFlyout_Border" Padding="10">
<Border.Background>
<ImageBrush ImageSource="images/firstrunbg.jpg" AlignmentY="Center" Stretch="UniformToFill"/>
</Border.Background>
<StackPanel x:Name="panel" VerticalAlignment="Top" HorizontalAlignment="Center" Orientation="Vertical" UseLayoutRounding="True">
<TextBlock Text="Welcome to the ALOT Installer" FontSize="30" FontWeight="Light"></TextBlock>
<TextBlock Text="This program will assist facilitate the installation of ALOT, updates, and the addon package" FontSize="13"></TextBlock>
<TextBlock Text="What is the addon?" Margin="0,10,0,0" FontSize="20"></TextBlock>
<TextBlock FontSize="13" Width="400" TextWrapping="Wrap" HorizontalAlignment="Left">The ALOT Addon are textures provided by users who do not want their content in the main ALOT file.
This installer allows you add those texture mods and put them all into an addon, which is installed along side ALOT.
The ALOT team has cherry picked the best vanilla style textures from within those mods.
For the true ALOT experience, you should download all of the listed files for your game and import them.
Import files by dragging and dropping them onto the interface - do not extract or modify anything you download.</TextBlock>



<TextBlock Text="What are the recommended steps for using this?" FontSize="20" Margin="0,10,0,0"></TextBlock>
<TextBlock FontSize="13" Width="400" TextWrapping="Wrap" HorizontalAlignment="Left">Ensure you have installed all content mods (mods that modify pcc or upk files) then download the files as shown in this interface.
Installing pcc or upk mods AFTER installation of ALOT is NOT SUPPORTED and will almost always break the game.
</TextBlock>

<TextBlock Text="This installer is in beta" FontSize="20" Margin="0,10,0,0"></TextBlock>
<TextBlock Text="That means you may find bugs or errors, and we need your help to find them." FontSize="13"></TextBlock>
<Button Content="Got it" HorizontalAlignment="Left" Margin="0,10,0,0" Click="Button_FirstTimeRun_Click"/>
</StackPanel>
</Border>
</Controls:Flyout>
</Controls:FlyoutsControl>
</Controls:MetroWindow.Flyouts>

Expand Down
11 changes: 11 additions & 0 deletions AlotAddOnGUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@ private async Task FetchManifest()
readManifest();

Log.Information("readManifest() has completed. Switching over to user control");
FirstRunFlyout.IsOpen = true;
Loading = false;
Build_ProgressBar.IsIndeterminate = false;
HeaderLabel.Text = PRIMARY_HEADER;
Expand Down Expand Up @@ -1979,5 +1980,15 @@ private void InstallingOverlayoutFlyout_DoubleClick(object sender, MouseButtonEv
this.WindowState = System.Windows.WindowState.Normal;
}
}

private void ShowFirstTime(object sender, RoutedEventArgs e)
{
FirstRunFlyout.IsOpen = true;
}

private void Button_FirstTimeRun_Click(object sender, RoutedEventArgs e)
{
FirstRunFlyout.IsOpen = false;
}
}
}
4 changes: 2 additions & 2 deletions AlotAddOnGUI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[assembly: AssemblyCulture("")]

// Version informationr(
[assembly: AssemblyVersion("2.0.90.1028")]
[assembly: AssemblyFileVersion("2.0.90.1028")]
[assembly: AssemblyVersion("2.0.99.1040")]
[assembly: AssemblyFileVersion("2.0.99.1040")]
[assembly: NeutralResourcesLanguageAttribute( "en-US" )]

Binary file added AlotAddOnGUI/images/firstrunbg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions AlotAddOnGUI/ui/ALOT_ThreadedTasks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,8 @@ private void InstallALOT(int game)
AddonFilesLabel.Text = "Running in installer mode.";
InstallingOverlay_Tip.Visibility = System.Windows.Visibility.Visible;
InstallingOverlay_StageLabel.Visibility = System.Windows.Visibility.Visible;
InstallingOverlay_OverallLabel.Visibility = System.Windows.Visibility.Visible;
InstallingOverlay_OverallLabel.Text = "";
InstallingOverlay_StageLabel.Text = "Getting ready";
InstallingOverlay_BottomLabel.Text = "Please wait";

Expand Down Expand Up @@ -1274,6 +1276,7 @@ private async void InstallWorker_ProgressChanged(object sender, ProgressChangedE
break;
case HIDE_STAGE_LABEL:
InstallingOverlay_StageLabel.Visibility = System.Windows.Visibility.Collapsed;
InstallingOverlay_OverallLabel.Visibility = System.Windows.Visibility.Collapsed;
break;
case UPDATE_OVERALL_TASK:
InstallingOverlay_TopLabel.Text = (string)tc.Data;
Expand Down
10 changes: 5 additions & 5 deletions AlotAddOnGUI/ui/ProgressWeightPercentages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ namespace AlotAddOnGUI.ui
{
class ProgressWeightPercentages
{
private const double WEIGHT_UNPACKED = 1.35;
private const double WEIGHT_SCAN = 2;
private const double WEIGHT_REMOVE = 2.1;
private const double WEIGHT_INSTALL = 2.5;
private const double WEIGHT_SAVE = 3;
private const double WEIGHT_UNPACKED = 0.11004021318;
private const double WEIGHT_SCAN = 0.12055272684;
private const double WEIGHT_REMOVE = 0.19155062326;
private const double WEIGHT_INSTALL = 0.31997680866;
private const double WEIGHT_SAVE = 0.25787962804;

public const int JOB_UNPACK = 0;
public const int JOB_SCAN = 1;
Expand Down
43 changes: 26 additions & 17 deletions AlotAddOnGUI/ui/installtips.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,42 @@
<tip>Medi-gel is an all-purpose medicinal salve combining an anaesthetic and clotting&#x0a;agent used by paramedics, EMTs, and military personnel, produced by the Sirta Foundation.</tip>
<tip>Mass Relays are mass transit devices scattered throughout the Milky Way, usually located&#x0a;within star systems. They form an enormous network allowing interstellar travel.</tip>
<tip>Kills while in the Mako grant much less XP than kills on foot.</tip>
<tip>Citadel Security Services, or C-Sec, handles law enforcementon the Citadel.&#x0a;It is a volunteer police service answering to the Citadel Council.</tip>
</me1>
<me2>
<tip>Due to their widespread network, Cerberus effectively has access to almost every&#x0a;settled system,major trade stop, and colony in the galaxy.</tip>
<tip>The M-44 Hammerhead is an infantry fighting vehicle that hovers over the&#x0a;battlefieldat up to 120 kilometers an hour.</tip>
<tip>The Ismar Frontier is an Attican Traverse cluster at the galactic rim,&#x0a;near the bordersof Outer Council Space.</tip>
<tip>Drell are omnivorous reptile-like humanoids with an average lifespan of 85 galactic standard years.</tip>
<tip>Many vorcha are trained by the krogan Blood Pack as mercenaries due to their savage nature&#x0a;and adaptability to different environments.</tip>
<tip>Around 1900 BCE, the krogan discovered atomic power and promptly instigated many intraplanetary wars,&#x0a;sending Tuchanka into a nuclear winter.</tip>
<tip>Heavy pistols are a class of semi-automatic weapons, which have a fairly low rate of fire&#x0a;and limited ammunition, but do relatively high damage per shot.</tip>
<tip>To eliminate inefficiency, guns adopted detachable heat sinks known as thermal clips.</tip>
<tip>Eezo is generated when solid matter, such as a planet, is affected by the energy of a star going supernova.&#x0a;The material is common in the asteroid debris that orbits neutron stars and pulsars.</tip>
<tip>Medi-gel is an all-purpose medicinal salve combining an anaesthetic and clotting agent&#x0a;used by paramedics, EMTs, and military personnel, produced by the Sirta Foundation.</tip>
<tip>The Citadel Fleet consists of a mixed group of turian, salarian, and asari vessels,&#x0a;though the greater number of them are turian.</tip>
<tip>The shielding afforded by kinetic barriers does not protect against extremes of,&#x0a;temperature, toxins, or radiation.</tip>
<tip>Starships still require conventional thrusters in addition to the FTL drive core.&#x0a;With only a core, a ship has no motive power.</tip>
<tip>A starship's General Area Defense Integration Anti-spacecraft Network (GARDIAN) consists&#x0a;of anti-missile and anti-fighter laser turrets on the exterior hull.</tip>
<tip>On their first three interstellar colonies, the salarians planted settlements named&#x0a;Aegohr, Mannovai, and Jaëto.</tip>
<tip>Due to their widespread network, Cerberus effectively has access to almost every&#x0a;settled system,major trade stop, and colony in the galaxy.</tip>
<tip>The M-44 Hammerhead is an infantry fighting vehicle that hovers over the&#x0a;battlefieldat up to 120 kilometers an hour.</tip>
<tip>The Ismar Frontier is an Attican Traverse cluster at the galactic rim,&#x0a;near the bordersof Outer Council Space.</tip>
<tip>Drell are omnivorous reptile-like humanoids with an average lifespan of 85 galactic standard years.</tip>
<tip>Many vorcha are trained by the krogan Blood Pack as mercenaries due to their savage nature&#x0a;and adaptability to different environments.</tip>
<tip>Around 1900 BCE, the krogan discovered atomic power and promptly instigated many intraplanetary wars,&#x0a;sending Tuchanka into a nuclear winter.</tip>
<tip>Heavy pistols are a class of semi-automatic weapons, which have a fairly low rate of fire&#x0a;and limited ammunition, but do relatively high damage per shot.</tip>
<tip>To eliminate inefficiency, guns adopted detachable heat sinks known as thermal clips.</tip>
<tip>Eezo is generated when solid matter, such as a planet, is affected by the energy of a star going supernova.&#x0a;The material is common in the asteroid debris that orbits neutron stars and pulsars.</tip>
<tip>Medi-gel is an all-purpose medicinal salve combining an anaesthetic and clotting agent&#x0a;used by paramedics, EMTs, and military personnel, produced by the Sirta Foundation.</tip>
<tip>The Citadel Fleet consists of a mixed group of turian, salarian, and asari vessels,&#x0a;though the greater number of them are turian.</tip>
<tip>The shielding afforded by kinetic barriers does not protect against extremes of,&#x0a;temperature, toxins, or radiation.</tip>
<tip>Starships still require conventional thrusters in addition to the FTL drive core.&#x0a;With only a core, a ship has no motive power.</tip>
<tip>A starship's General Area Defense Integration Anti-spacecraft Network (GARDIAN) consists&#x0a;of anti-missile and anti-fighter laser turrets on the exterior hull.</tip>
<tip>On their first three interstellar colonies, the salarians planted settlements named&#x0a;Aegohr, Mannovai, and Jaëto.</tip>
<tip>Spectres (Special Tactics and Reconnaissance) are agents entrusted with extraordinary&#x0a;authority by the Citadel Council, including the power of life and death over the inhabitants of the galaxy.</tip>
<tip>Originally a small Terminus Systems vorcha gang, the Blood Pack was transformed&#x0a;into a mercenary legion by visionary krogan battlemaster Ganar Wrang.</tip>
<tip>Eclipse is a mercenary corporation that was founded by asari commando Jona Sederis.&#x0a;The organization provides effective security and firepower for prospective employers.</tip>
<tip>The Blue Suns are a "private security organization",&#x0a;in reality a mercenary outfit, operating in the Skyllian Verge.</tip>
<tip>The keepers are a mysterious, bio-engineered insectoid race that are native only&#x0a;to the Citadel. They are found throughout the Citadel in random locations, and are harmless.</tip>
</me2>
<me3>
<tip>Without Salarian intervention, the effects of nuclear war on Tuchanka&#x0a;would have resulted in a slow but certain mass extinction.</tip>
<tip>The Illusive Man is the elusive, secretive, and well informed leader of Cerberus.&#x0a;He has close-cropped silver-grey hair with "steely blue" eyes which appear to be prosthetic.</tip>
<tip>N7 is a vocational code in the Systems Alliance military. The "N" designates&#x0a;special forces and the "7" refers to the highest level of proficiency.</tip>
<tip>Barla Von is a volus financial adviser who runs an office in the Financial District of&#x0a;the Presidium.He is known for being able to move large sums of money without leaving a paper trail.</tip>
<tip>Barla Von is a volus financial adviser who runs an office in the Financial District of&#x0a;the Presidium. He is known for being able to move large sums of money without leaving a paper trail.</tip>
<tip>Benning, the nearest garden world to Arcturus Station, is the primary source of its&#x0a;food supply and an important staging area for starship maintenance and repair.</tip>
<tip>Supposedly constructed by the long-extinct Protheans, the Citadel serves as the&#x0a;capital of the Citadel Council.</tip>
<tip>Supposedly constructed by the long-extinct Protheans,&#x0a;the Citadel serves as the capital of the Citadel Council.</tip>
<tip>The elcor homeworld Dekuuna overflows with natural resources protected by law, from large&#x0a;deposits of precious metals to vast forests. The elcor themselves live in rich grasslands near the equator.</tip>
<tip>Huerta Memorial Hospital is located on the Presidium of the Citadel. The hospital is&#x0a;named after President Christopher Huerta of the United North American States on Earth.</tip>
<tip>Also known as the Flotilla, the Migrant Fleet is the massive collection of starships&#x0a;that became home to the quarians after they were driven from their home world by the geth.</tip>
<tip>The hanar are a species resembling Earth's jellyfish and are one of the few non-bipedal&#x0a;Citadel races. Hanar are known for their intense politeness when speaking, and their strong religious beliefs.</tip>
<tip>Cerberus arose from the tumult of the First Contact War in 2157 CE, a conflict between&#x0a;humanity and the first alien race they had encountered after achieving spaceflight, the turians.</tip>
<tip>Duct Rats are poor, homeless children of the Citadel who travel in the ventilation system of the station.</tip>
</me3>
</tips>

0 comments on commit 6bd7546

Please sign in to comment.