mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-21 23:48:15 +03:00
* Большое обновление книжек * Remove dotnet tool cache artifacts * Remove dotnet tool cache artifacts 2 * All comments on English * Add all validation * All localization, code reduction, named bookmarks system * Add "try catch" because coderabbitai asked * Add base check content length * Fix "\\n" * the "BookRandomStory" system has been fix and translate * little fix "BookRandomStory" system * 2 little fix "BookRandomStory" system * 3 little fix "BookRandomStory" system * 4 little fix "BookRandomStory" system * 5 little fix "BookRandomStory" system * Improved handling of UTF-8 character truncation * 2 Improved validation and handling of UTF-8 character truncation * Mini-up for author_books * add new author book for botany * Smaller long of text on one page * translation of the new janitor's book * Spelling lesson * Make TODO notes * Translate TODO notes... * little fix "Check the status of the dialog before using it." * DONE: Create new pages to transfer text, not replace old ones * DONE: Make it visible when the text limit per page is exceeded * DONE: Make it possible to delete unnecessary pages * Fall protection on incorrect markings * fix ".ftl" * Text length limit for SplitContentIntoPages * change limits * Add sound * Add placeholder to loadouts and new symbol for CreateNewPage * Apply some suggestions from code review All changes, except moving files into White folders Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Apply some suggestions from code review 2 Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Transfering into "_White" folder * Remove dublicate code * Added the necessary code * Add method * BookSystem has been transfered into "Shared" folder * Add attributions for ".ogg" * changes for tools have been canceled * Apply some suggestions from code review 3 Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * content have been transfered into "_White" folder 2 * Little fix locales * Apply some suggestions from code review 4 Add comments in "Resources/Prototypes/Entities/Objects/Misc/books_author.yml" Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * content have been transfered into "_White" folder and translate * English spelling lesson Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Add BookRandomeStorySystem * Apply some suggestions from code review 5 Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * rolling back some changes from "code review 5" * Spelling lesson 2 * tweak BookSystem. (Apply suggestion from code review) Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Little fix bookmark-default-title * Apply some suggestions from code review 6 Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * fix code review changes and transfer "BookRandomStorySystem.cs" into "Content.System" * Half of good locales * full good locales of RandomStorySystem * Spelling lesson 3 * Removed unnecessary StoryGen file * Fixed bookmarks pos after del any page * Transd files into _White folder * Fixed the constant activity of the add page button * Correction at the request of coderabbitai * Transfered at the request of code review * Transfered at the request of code review 2 * Fix transfer * Apply suggestions from code review 7 Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Apply suggestions from code review 8 Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Apply and fix all suggestions from code review of file "BookWindow.xaml.cs" * Fix formated * Apply some suggestions from code review 9 maybe last... Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Add try catch on texture loading * Add Dispose method * Correct display of blank pages * Little fix eng locale * Unnecessary code removed * A Little Defense Against NRE/KeyNotFound. * Highlighting the current page in the bookmarks drop-down list. * Added fallback for the save button when there is no hotkey. * Correct unsubscribing from events. * Little fix save button * Little fix formated * Locales transfered fix --------- Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
56 lines
3.7 KiB
XML
56 lines
3.7 KiB
XML
<controls:FancyWindow xmlns="https://spacestation14.io"
|
|
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
|
|
xmlns:neoTab="clr-namespace:Content.Client.UserInterface.Controls"
|
|
SetSize="540 690">
|
|
|
|
<BoxContainer Name="ContentsRoot" Orientation="Vertical">
|
|
<!-- Main book interface -->
|
|
<PanelContainer Name="PaperBackground" StyleClasses="PaperDefaultBorder" VerticalExpand="True" HorizontalExpand="True">
|
|
<ScrollContainer Name="ScrollingContents" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalExpand="True" VerticalExpand="True" HScrollEnabled="False">
|
|
<PanelContainer Name="PaperContent" VerticalExpand="True" HorizontalExpand="True" MaxWidth="600">
|
|
<BoxContainer Orientation="Vertical" VerticalAlignment="Stretch">
|
|
<TextureButton Name="HeaderImage" HorizontalAlignment="Center" VerticalAlignment="Top" MouseFilter="Ignore"/>
|
|
<Control Name="TextAlignmentPadding" VerticalAlignment="Top"/>
|
|
<RichTextLabel Name="BlankPaperIndicator" StyleClasses="LabelSecondaryColor" VerticalAlignment="Top" HorizontalAlignment="Center"/>
|
|
<BoxContainer Name="PageContainer" Orientation="Vertical" VerticalAlignment="Top">
|
|
<!-- Page content container -->
|
|
</BoxContainer>
|
|
<PanelContainer Name="InputContainer" StyleClasses="TransparentBorderedWindowPanel" MinHeight="100"
|
|
VerticalAlignment="Stretch" VerticalExpand="True" HorizontalExpand="True">
|
|
<BoxContainer Orientation="Vertical">
|
|
<TextEdit Name="Input" StyleClasses="PaperLineEdit" Access="Public" VerticalExpand="True"/>
|
|
<Label Name="CharacterCountLabel" Text="" StyleClasses="LabelSubText" HorizontalAlignment="Right" Margin="5"/>
|
|
</BoxContainer>
|
|
</PanelContainer>
|
|
</BoxContainer>
|
|
</PanelContainer>
|
|
</ScrollContainer>
|
|
</PanelContainer>
|
|
|
|
<!-- Bookmarks -->
|
|
<BoxContainer Orientation="Horizontal" Margin="5" Name="BookmarksPanel" Visible="False">
|
|
<Label Text="{Loc 'book-ui-bookmarks-label'}" VerticalAlignment="Center" Margin="0 0 5 0"/>
|
|
<Button Name="ToggleBookmarkButton" Text="+" Margin="0 0 5 0" MinSize="30 30"/>
|
|
<OptionButton Name="BookmarkDropdown" HorizontalExpand="True" Margin="0 0 5 0"/>
|
|
<Label Name="BookmarkCountLabel" Text="" StyleClasses="LabelSubText"/>
|
|
</BoxContainer>
|
|
|
|
<!-- Navigation -->
|
|
<BoxContainer Orientation="Horizontal" HorizontalAlignment="Center" Margin="6">
|
|
<Button Name="PrevPageButton" Text="◀" Margin="5"/>
|
|
<Label Text="{Loc 'book-ui-page-label'}" Margin="5 0"/>
|
|
<LineEdit Name="PageNumberInput" MinSize="50 0" Margin="5" Access="Public"/>
|
|
<Label Name="PageInfo" Text="{Loc 'book-page-info'}" Margin="5 0"/>
|
|
<Button Name="NextPageButton" Text="▶" Margin="5"/>
|
|
<Button Name="AddPageButton" Text="+" Margin="5"/>
|
|
<Button Name="DeletePageButton" Text="-" Margin="5" Access="Public"/>
|
|
<Button Name="BookmarksToggleButton" Text="{Loc 'book-bookmarks-show'}" MinSize="30 30" Margin="5" Access="Public"/>
|
|
</BoxContainer>
|
|
|
|
<!-- Save button -->
|
|
<BoxContainer Name="EditButtons" Orientation="Horizontal" HorizontalAlignment="Right" Margin="6">
|
|
<Button Name="SaveButton" />
|
|
</BoxContainer>
|
|
</BoxContainer>
|
|
</controls:FancyWindow>
|