1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 04:13:32 +08:00

UXAssist 1.2.12

This commit is contained in:
2024-12-22 20:59:52 +08:00
parent a823d4f2c3
commit bd794aa479
4 changed files with 21 additions and 9 deletions

View File

@@ -1,7 +1,9 @@
## Changlog
* 1.2.11
* 1.2.12
+ `Construct only structure points but frames`: Fix a bug that frames are still not constructed when this function is disabled.
+ `Drag building power poles in maximum connection range`: Fix a bug that single power pole cannot be placed at some positions.
* 1.2.11
+ Fix an issue caused by game update: tips are not shown when mouse hovering on tips button.
* 1.2.10
+ `Set enabled CPU threads`: Fix hybrid-architect check for CPUs without hyper-threading
@@ -227,8 +229,10 @@
## 更新日志
* 1.2.11
* 1.2.12
+ `只建造节点不建造框架`:修复了关闭此功能时框架不进行建造的问题
+ `拖动建造电线杆时自动使用最大连接距离间隔`:修复了某些位置无法放置单个电线杆的问题
* 1.2.11
+ 修复了游戏更新导致的提示按钮鼠标悬停时不显示提示文字的问题
* 1.2.10
+ `设置使用的CPU线程`修复了对没有超线程的CPU的大小核检查

View File

@@ -1384,14 +1384,22 @@ public class FactoryPatch : PatchImpl<FactoryPatch>
{
begin = begin.normalized;
end = end.normalized;
var intervalAll = interval.x;
var radTotal = Mathf.Acos(Vector3.Dot(begin, end));
var distTotal = radTotal * planetRadius;
var finalCount = 1;
var ignoreGrid = VFInput._ignoreGrid;
if (ignoreGrid)
snaps[0] = begin;
else
snaps[0] = planetGrid.SnapTo(begin);
var dot = Vector3.Dot(begin, end);
if (dot is > 0.999999f or < -0.999999f)
return 1;
var distTotal = Mathf.Acos(dot) * planetRadius;
var maxCount = snaps.Length;
var finalCount = 0;
var intervalAll = interval.x;
var maxT = 1f - intervalAll * 0.5f / distTotal;
if (maxT < 0f)
return 1;
var maxCount = snaps.Length;
while (finalCount < maxCount)
{
var t = finalCount * intervalAll / distTotal;

View File

@@ -4,7 +4,7 @@
<TargetFramework>net472</TargetFramework>
<BepInExPluginGuid>org.soardev.uxassist</BepInExPluginGuid>
<Description>DSP MOD - UXAssist</Description>
<Version>1.2.11</Version>
<Version>1.2.12</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<PackageId>UXAssist</PackageId>

View File

@@ -1,6 +1,6 @@
{
"name": "UXAssist",
"version_number": "1.2.11",
"version_number": "1.2.12",
"website_url": "https://github.com/soarqin/DSP_Mods/tree/master/UXAssist",
"description": "Some functions and patches for better user experience / 一些提升用户体验的功能和补丁",
"dependencies": [