ui: drop auto-translate from compact bar in v0.6.0 (out of scope)
This commit is contained in:
+14
-11
@@ -41,11 +41,17 @@ public sealed class ChatInputBar
|
|||||||
|
|
||||||
// Compact rendering for pop-out windows.
|
// Compact rendering for pop-out windows.
|
||||||
//
|
//
|
||||||
// Layout A (klassisch): Channel-Icon-Button links (Background-Farbe
|
// v0.6.0 Compact-Layout: Channel-Icon-Button links (Background-Farbe
|
||||||
// aus ChatColours), Text-Input mittig, Auto-Translate-Icon-Button
|
// aus ChatColours), Text-Input rechts daneben. Auto-Translate-Picker
|
||||||
// rechts. Channel-Switch wirkt via Plugin.Functions.Chat global (das
|
// ist bewusst NICHT im Compact-Mode (Spec-Abweichung Layout D → A).
|
||||||
// ist eine FFXIV-API-Eigenschaft, kein Bug). Pro Pop-Out unabhängig
|
// Rechtfertigung: das Hauptfenster-Auto-Complete-Popup ist nicht ohne
|
||||||
// bleibt aber der Text-Buffer und der History-Cursor.
|
// grossen Refactor pro Window instanzierbar; typische Pop-Out-Use-Cases
|
||||||
|
// (FC-Greeter, Club-Hostess) brauchen Auto-Translate selten dort.
|
||||||
|
// Eigene Compact-Auto-Complete-Implementation kann ein späterer
|
||||||
|
// Cycle nachreichen wenn Tester-Feedback das verlangt.
|
||||||
|
//
|
||||||
|
// Channel-Switch wirkt via Plugin.Functions.Chat global (FFXIV-API).
|
||||||
|
// Pro Pop-Out unabhängig bleiben Text-Buffer und History-Cursor.
|
||||||
public void RenderCompact()
|
public void RenderCompact()
|
||||||
{
|
{
|
||||||
var tab = _activeTabAccessor();
|
var tab = _activeTabAccessor();
|
||||||
@@ -55,16 +61,13 @@ public sealed class ChatInputBar
|
|||||||
DrawChannelIconButton(tab);
|
DrawChannelIconButton(tab);
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
DrawCompactInput(tab);
|
DrawCompactInput(tab);
|
||||||
ImGui.SameLine();
|
|
||||||
// Task 23 ergänzt hier den Auto-Translate-Icon-Button.
|
|
||||||
ImGui.TextDisabled("[at]");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DrawCompactInput(Tab tab)
|
private void DrawCompactInput(Tab tab)
|
||||||
{
|
{
|
||||||
// Reserve room for the auto-translate icon button on the right.
|
// Input takes the whole remaining width — no auto-translate button
|
||||||
const float reservedRightWidth = 32f;
|
// reserved on the right side in v0.6.0 (see RenderCompact comment).
|
||||||
var inputWidth = ImGui.GetContentRegionAvail().X - reservedRightWidth;
|
var inputWidth = ImGui.GetContentRegionAvail().X;
|
||||||
if (inputWidth < 60f)
|
if (inputWidth < 60f)
|
||||||
inputWidth = 60f;
|
inputWidth = 60f;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user